aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLei Maohui <leimaohui@cn.fujitsu.com>2019-11-01 14:23:18 +0900
committerLei Maohui <leimaohui@cn.fujitsu.com>2019-11-01 14:23:18 +0900
commit679bd1b27def6c25f1152bfb414d509da77f94ff (patch)
treef2d68715d5a0a8e30bf2ed2ad8a86e8b7fa54058
parent9d88b0eb15b6393fc24870634f4548e2f03b662d (diff)
downloadmeta-spdxscanner-679bd1b27def6c25f1152bfb414d509da77f94ff.tar.gz
meta-spdxscanner-679bd1b27def6c25f1152bfb414d509da77f94ff.tar.bz2
meta-spdxscanner-679bd1b27def6c25f1152bfb414d509da77f94ff.zip
Capture logging info of fossdriver.
Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
-rw-r--r--classes/fossdriver-host.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/classes/fossdriver-host.bbclass b/classes/fossdriver-host.bbclass
index 655dbc0..497d112 100644
--- a/classes/fossdriver-host.bbclass
+++ b/classes/fossdriver-host.bbclass
@@ -136,6 +136,12 @@ def invoke_fossdriver(tar_file, spdx_file):
import time
delaytime = 20
+ import logging
+
+ logger = logging.getLogger()
+ logger.setLevel(logging.INFO)
+ logging.basicConfig(level=logging.INFO)
+
(work_dir, tar_file) = os.path.split(tar_file)
os.chdir(work_dir)