mirror of
https://github.com/Watchful1/PushshiftDumps.git
synced 2025-07-25 07:35:24 -04:00
More logging
This commit is contained in:
parent
ce964262e3
commit
a4ea76a592
1 changed files with 5 additions and 1 deletions
|
@ -285,4 +285,8 @@ if __name__ == "__main__":
|
||||||
input_files.append((input_file, output_file))
|
input_files.append((input_file, output_file))
|
||||||
log.info(f"Processing {len(input_files)} files")
|
log.info(f"Processing {len(input_files)} files")
|
||||||
for file_in, file_out in input_files:
|
for file_in, file_out in input_files:
|
||||||
|
try:
|
||||||
process_file(file_in, file_out, output_format, field, values, from_date, to_date, single_field, exact_match)
|
process_file(file_in, file_out, output_format, field, values, from_date, to_date, single_field, exact_match)
|
||||||
|
except Exception as err:
|
||||||
|
log.warning(f"Error processing {file_in}: {err}")
|
||||||
|
log.warning(traceback.format_exc())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue