Set new log header daily #130

Merged
sirdog3355 merged 1 commit from feat/daily-restart into dev 2025-11-07 21:08:40 -05:00
sirdog3355 commented 2025-11-07 21:08:21 -05:00 (Migrated from github.com)

So, apparently, getting the bot to restart cleanly using a task loop isn't an easy win. Ugh.

Alas, I instead looked in utils/logging_setup.py and saw I had an entire custom log level for the BOOT header. The whole point of restarting was just to ensure a new header exists per day at midnight. So, I instead had the loop just send another one of those at midnight every night.

That was an easy win.

New variable created since daylight savings time changes the hour requirement. variables_example.json updated appropriately.

Closes #122

So, apparently, getting the bot to restart cleanly using a task loop _isn't_ an easy win. Ugh. Alas, I instead looked in `utils/logging_setup.py` and saw I had an entire custom log level for the `BOOT` header. The whole point of restarting was just to ensure a new header exists per day at midnight. So, I instead had the loop just send another one of those at midnight every night. _That_ was an easy win. New variable created since daylight savings time changes the hour requirement. `variables_example.json` updated appropriately. Closes #122
Sign in to join this conversation.
No description provided.