Skip to content

Clean Up AOC logging#1016

Merged
ChrisLovering merged 4 commits into
mainfrom
aoc-logging
Jan 26, 2022
Merged

Clean Up AOC logging#1016
ChrisLovering merged 4 commits into
mainfrom
aoc-logging

Conversation

@HassanAbouelela
Copy link
Copy Markdown
Contributor

Relevant Issues

Approved by myself.

Description

When browsing the prod logs looking for a specific error, I noticed that the AOC cog produced a bunch of mostly pointless logs which contributed heavily to making the logs unbrowsable. This PR removes the main offenders while not losing any important information.

This PR adds a few unrelated changes to the config, but they are minor and should be good overall. The commit message for those changes should explain everything.

Did you:

This commit moves the logging constants from the Client class to a new
Logging class.

Flake8 is renabled for constants, and the error it was disabled for was
specifically ignored. All new errors were fixed.

It also fixes a bug with __all__, which was trying to export a missing
symbol due to a missing comma.

Signed-off-by: Hassan Abouelela <hassan@hassanamr.com>
The AOC cog produces a lot of large logs very frequently which have
minimal value, causing the logs to be significantly harder to navigate.

Signed-off-by: Hassan Abouelela <hassan@hassanamr.com>
@HassanAbouelela HassanAbouelela added status: approved The issue has received a core developer's approval area: frontend Related to output and formatting type: enhancement Changes or improvements to existing features category: events Related to events (AoC, Hacktoberfest) labels Jan 25, 2022
@ChrisLovering ChrisLovering enabled auto-merge (rebase) January 25, 2022 09:22
Signed-off-by: Hassan Abouelela <hassan@hassanamr.com>
@HassanAbouelela
Copy link
Copy Markdown
Contributor Author

The actions are currently failing for an unknown reason. We've identified that there was a minor version bump from 3.9.9 to 3.9.10, but the cause of the failure, and the solution remain unknown.

Copy link
Copy Markdown
Contributor

@ToxicKidz ToxicKidz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@ChrisLovering ChrisLovering merged commit 42163c1 into main Jan 26, 2022
@ChrisLovering ChrisLovering deleted the aoc-logging branch January 26, 2022 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: frontend Related to output and formatting category: events Related to events (AoC, Hacktoberfest) status: approved The issue has received a core developer's approval type: enhancement Changes or improvements to existing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants