Skip to content

Commit a3ceda5

Browse files
committed
Merge branch 'development' into alex_collector_args
2 parents 5beb89e + 6a48259 commit a3ceda5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

nodescraper/cli/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,10 @@ def main(arg_input: Optional[list[str]] = None):
329329
system_info = get_system_info(parsed_args)
330330

331331
if parsed_args.log_path and parsed_args.subcmd not in ["gen-plugin-config", "describe"]:
332+
sname = system_info.name.lower().replace("-", "_").replace(".", "_")
332333
log_path = os.path.join(
333334
parsed_args.log_path,
334-
f"scraper_logs_{system_info.name}_{datetime.datetime.now().strftime('%Y_%m_%d-%I_%M_%S_%p')}",
335+
f"scraper_logs_{sname}_{datetime.datetime.now().strftime('%Y_%m_%d-%I_%M_%S_%p')}",
335336
)
336337
os.makedirs(log_path)
337338
else:

nodescraper/plugins/inband/process/collector_args.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@
2929

3030
class ProcessCollectorArgs(CollectorArgs):
3131
top_n_process: int = 10
32+
33+
model_config = {"extra": "forbid"}

0 commit comments

Comments
 (0)