Skip to content

Commit 0570357

Browse files
committed
erroscraper.csv -> nodescraper.csv
1 parent 6f31b6a commit 0570357

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ single summary.csv file. Sample run:
175175
node-scraper summary --summary_path /<path_to_node-scraper_logs>
176176
```
177177
This will generate a new file '/<path_to_node-scraper_logs>/summary.csv' file. This file will
178-
contain the results from all 'errorscraper.csv' files from '/<path_to_node-scarper_logs>'.
178+
contain the results from all 'nodescraper.csv' files from '/<path_to_node-scarper_logs>'.
179179
180180
181181
### Plugin Configs

nodescraper/cli/helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ def dump_results_to_csv(
443443
logger (logging.Logger): instance of logger
444444
"""
445445
fieldnames = ["nodename", "plugin", "status", "timestamp", "message"]
446-
filename = log_path + "/errorscraper.csv"
446+
filename = log_path + "/nodescraper.csv"
447447
all_rows = []
448448
for res in results:
449449
row = {
@@ -487,7 +487,7 @@ def generate_summary(base_path: str, logger: logging.Logger):
487487
fieldnames = ["nodename", "plugin", "status", "timestamp", "message"]
488488
all_rows = []
489489

490-
pattern = os.path.join(base_path, "**", "errorscraper.csv")
490+
pattern = os.path.join(base_path, "**", "nodescraper.csv")
491491
for filepath in glob.glob(pattern, recursive=True):
492492
logger.info(f"Reading: {filepath}")
493493
with open(filepath, newline="") as f:

test/unit/framework/test_cli_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def test_dump_results_to_csv(tmp_path, caplog):
215215

216216
dump_results_to_csv([result], "node123", str(tmp_path), "2025_07_16-01_00_00_PM", logger)
217217

218-
out_file = tmp_path / "errorscraper.csv"
218+
out_file = tmp_path / "nodescraper.csv"
219219
assert out_file.exists()
220220

221221
with open(out_file, newline="") as f:
@@ -232,7 +232,7 @@ def test_generate_summary(tmp_path):
232232
subdir = tmp_path / "sub"
233233
subdir.mkdir()
234234

235-
errorscraper_path = subdir / "errorscraper.csv"
235+
errorscraper_path = subdir / "nodescraper.csv"
236236
with open(errorscraper_path, "w", newline="") as f:
237237
writer = csv.DictWriter(
238238
f, fieldnames=["nodename", "plugin", "status", "timestamp", "message"]

0 commit comments

Comments
 (0)