From 4b8288c016be9a4e2e9e81fce0d77f969e105ab9 Mon Sep 17 00:00:00 2001 From: Nathan TeBlunthuis Date: Tue, 6 Jan 2026 19:58:18 -0800 Subject: [PATCH] add some debug lines. --- src/wikiq/__init__.py | 1 + src/wikiq/resume.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/wikiq/__init__.py b/src/wikiq/__init__.py index d45cad0..cd8992f 100755 --- a/src/wikiq/__init__.py +++ b/src/wikiq/__init__.py @@ -854,6 +854,7 @@ class WikiqParser: else: jsonl_basename = "data.jsonl" jsonl_path = Path(self.output_file) / jsonl_basename + print(f"Writing to JSONL: {jsonl_path} (append={append_mode})", file=sys.stderr) writer = JSONLWriter(str(jsonl_path), schema, append=append_mode) else: writer = JSONLWriter(self.output_file, schema, append=append_mode) diff --git a/src/wikiq/resume.py b/src/wikiq/resume.py index b88d4e3..dc3513c 100644 --- a/src/wikiq/resume.py +++ b/src/wikiq/resume.py @@ -168,6 +168,7 @@ def get_jsonl_resume_point(output_file, input_file=None): from wikiq import get_output_filename jsonl_filename = os.path.basename(get_output_filename(input_file, 'jsonl')) output_file = os.path.join(output_file, jsonl_filename) + print(f"Looking for resume point in: {output_file}", file=sys.stderr) else: return None