Skip to content

Commit 51958b2

Browse files
committed
Add the package name to log and result file
Signed-off-by: Jiyeong Seok <[email protected]>
1 parent 7d4298d commit 51958b2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/fosslight_source/convert_scancode.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ def convert_json_to_output_report(scancode_json, output_file_name, need_license=
4343
if output_extension == _json_ext:
4444
output_file = "fosslight_opossum_" + start_time
4545
else:
46-
output_file = "fosslight_report_" + start_time
46+
output_file = "fosslight_report_src_" + start_time
4747
else:
4848
output_path = os.getcwd()
4949

50-
logger, result_log = init_log(os.path.join(output_path, "fosslight_log_" + start_time + ".txt"),
50+
logger, result_log = init_log(os.path.join(output_path, "fosslight_log_src_" + start_time + ".txt"),
5151
True, logging.INFO, logging.DEBUG, _PKG_NAME)
5252
if not success:
5353
logger.error("Fail to convert scancode: " + msg)

src/fosslight_source/run_scancode.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ def run_scan(path_to_scan, output_file_name="",
4949
if output_extension == _json_ext:
5050
output_file = f"fosslight_opossum_{_start_time}"
5151
else:
52-
output_file = f"fosslight_report_{_start_time}"
52+
output_file = f"fosslight_report_src_{_start_time}"
5353

5454
if _write_json_file:
5555
output_json_file = os.path.join(output_path, "scancode_raw_result.json")
5656
else:
5757
output_json_file = ""
5858

5959
if not called_by_cli:
60-
logger, _result_log = init_log(os.path.join(output_path, f"fosslight_log_{_start_time}.txt"),
60+
logger, _result_log = init_log(os.path.join(output_path, f"fosslight_log_src_{_start_time}.txt"),
6161
True, logging.INFO, logging.DEBUG, _PKG_NAME, path_to_scan)
6262

6363
num_cores = multiprocessing.cpu_count() - 1 if num_cores < 0 else num_cores

src/fosslight_source/run_scanoss.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def run_scanoss_py(path_to_scan, output_file_name="", format="", called_by_cli=F
4545
if not called_by_cli:
4646
global logger
4747
_start_time = datetime.now().strftime('%y%m%d_%H%M')
48-
logger, _result_log = init_log(os.path.join(output_path, f"fosslight_log_{_start_time}.txt"),
48+
logger, _result_log = init_log(os.path.join(output_path, f"fosslight_log_src_{_start_time}.txt"),
4949
True, logging.INFO, logging.DEBUG, _PKG_NAME, path_to_scan)
5050

5151
scanoss_file_list = []

0 commit comments

Comments
 (0)