You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.logger.warning(f"No eligible files found in {input_path}")
347
362
return
348
363
349
-
self.logger.info(f"Found {total_files} file(s) to process")
364
+
print(f"Found {total_files} file(s) to process")
350
365
351
366
# Counter for actually processed files
352
367
processed_files_count=0
@@ -412,9 +427,9 @@ def process(
412
427
processed_files_count+=batch_processed
413
428
errors_files_count+=batch_errors
414
429
415
-
# Log final statistics
416
-
self.logger.info(f"Processing completed: {processed_files_count} out of {total_files} files processed")
417
-
self.logger.info(f"Errors: {errors_files_count} out of {total_files} files processed")
430
+
# Log final statistics - always visible
431
+
print(f"Processing completed: {processed_files_count} out of {total_files} files processed")
432
+
print(f"Errors: {errors_files_count} out of {total_files} files processed")
418
433
419
434
defprocess_batch(
420
435
self,
@@ -793,7 +808,7 @@ def main():
793
808
parser.add_argument(
794
809
"--verbose",
795
810
action="store_true",
796
-
help="print information about processed files in the console",
811
+
help="enable detailed logging (INFO level) - shows file-by-file processing details, server status, and JSON conversion messages. Without this flag, only essential statistics and warnings/errors are shown.",
797
812
)
798
813
799
814
parser.add_argument(
@@ -828,13 +843,13 @@ def main():
828
843
exceptValueError:
829
844
temp_logger.warning(f"Invalid concurrency parameter n: {args.n}. Using default value n = 10")
830
845
831
-
# Initialize GrobidClient which will configure logging based on config.json
846
+
# Initialize GrobidClient which will configure logging based on config.json and verbose flag
832
847
try:
833
848
# Only pass grobid_server if it was explicitly provided (not the default)
0 commit comments