Skip to content

[WIP] make logging to do on separate file for each run on each script, and use seaparate folders for each type of log#27

Closed
Copilot wants to merge 1 commit intofix/split-logs-daily-and-backupfrom
copilot/fix-eb493912-226b-4e8e-a2f6-4808860f1606
Closed

[WIP] make logging to do on separate file for each run on each script, and use seaparate folders for each type of log#27
Copilot wants to merge 1 commit intofix/split-logs-daily-and-backupfrom
copilot/fix-eb493912-226b-4e8e-a2f6-4808860f1606

Conversation

Copy link
Copy Markdown

Copilot AI commented Sep 3, 2025

  • Analyze current logging implementation in src/utils/logger.py
  • Review how scripts use the logger (fetch_new_uploads.py, update_video_stats_hourly.py, populate_channels_from_a_list.py)
  • Identify that init_db.py doesn't use the logger utility (uses print statements)
  • Modify setup_logger function to support script-specific and run-specific log files
  • Update logging directory structure to logs/{script_name}/run_{timestamp}.log
  • Update fetch_new_uploads.py to use new logging parameters
  • Update update_video_stats_hourly.py to use new logging parameters
  • Update populate_channels_from_a_list.py to use new logging parameters
  • Optionally update init_db.py to use the logging utility
  • Update config.yaml documentation to reflect new logging structure
  • Test the changes with sample script runs

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@Ke-vin-S Ke-vin-S closed this Sep 3, 2025
Copilot AI requested a review from Ke-vin-S September 3, 2025 13:51
@Ke-vin-S Ke-vin-S deleted the copilot/fix-eb493912-226b-4e8e-a2f6-4808860f1606 branch September 3, 2025 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants