mirror of
https://github.com/Watchful1/PushshiftDumps.git
synced 2025-07-22 14:20:40 -04:00
Fix logging
This commit is contained in:
parent
2fff2ad373
commit
fba4d6de99
3 changed files with 13 additions and 9 deletions
|
@ -17,6 +17,10 @@ import discord_logging
|
|||
import multiprocessing
|
||||
|
||||
log = discord_logging.init_logging()
|
||||
discord_logging.init_discord_logging(
|
||||
section_name="Watchful12",
|
||||
log_level=logging.WARNING,
|
||||
)
|
||||
multiprocessing_logging.install_mp_handler(log)
|
||||
|
||||
import utils
|
||||
|
@ -244,11 +248,7 @@ if __name__ == "__main__":
|
|||
start_id, end_id = id_range.split("-")
|
||||
ignore_ids.append((utils.base36decode(start_id), utils.base36decode(end_id)))
|
||||
|
||||
discord_logging.init_discord_logging(
|
||||
section_name="Watchful12",
|
||||
log_level=logging.WARNING,
|
||||
)
|
||||
log.warning("test")
|
||||
log.warning(f"Processing {args.month}")
|
||||
discord_logging.flush_discord()
|
||||
|
||||
status_file = "process.json"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue