Shift-Cyber / bits

Humanoid Discord bot with too much power and a bit of an attitude...
GNU General Public License v3.0
2 stars 0 forks source link

Increase Log Verbosity in GCP and Remove Legacy Code #15

Closed natesinger closed 1 year ago

natesinger commented 1 year ago

We want to either increase log verbosity from info to debug or write better logging statements into the bot. This is going to help with triage as we continue to develop features for the bot. Logging costs should be minimal at this point so I'm inclined to support logging everything. By default, the GCP logging feature defaults to Info and below severity. There are a number of errors in our logs that we aren't able to trace back currently due to a lack of context.

We also need to remove or refactor the legacy logging config code as it is no longer correct.

https://github.com/Shift-Cyber/Bits/blob/c68676856b6f87f3857ecfb604709fc19db4100a/app/bot.py#L9-L25

natesinger commented 1 year ago

Added considerable logging context and setup environment variables to provide a switch for local testing.

https://github.com/Shift-Cyber/Bits/pull/19/commits/a5c6ae37f5b4760854431ee5ddd55ba22d90d384