Skip to content

Commit 01dfaa6

Browse files
committed
Merge branch 'development' into alex_diff
2 parents ecb1a91 + 36c030c commit 01dfaa6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nodescraper/cli/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,12 @@ def main(arg_input: Optional[list[str]] = None):
318318
top_level_args, plugin_arg_map = process_args(arg_input, list(plugin_subparser_map.keys()))
319319

320320
parsed_args = parser.parse_args(top_level_args)
321+
system_info = get_system_info(parsed_args)
321322

322323
if parsed_args.log_path and parsed_args.subcmd not in ["gen-plugin-config", "describe"]:
323324
log_path = os.path.join(
324325
parsed_args.log_path,
325-
f"scraper_logs_{datetime.datetime.now().strftime('%Y_%m_%d-%I_%M_%S_%p')}",
326+
f"scraper_logs_{system_info.name}_{datetime.datetime.now().strftime('%Y_%m_%d-%I_%M_%S_%p')}",
326327
)
327328
os.makedirs(log_path)
328329
else:
@@ -361,7 +362,6 @@ def main(arg_input: Optional[list[str]] = None):
361362
plugin_subparser_map=plugin_subparser_map,
362363
)
363364

364-
system_info = get_system_info(parsed_args)
365365
log_system_info(log_path, system_info, logger)
366366
except Exception as e:
367367
parser.error(str(e))

0 commit comments

Comments
 (0)