Skip to content

Conversation

@rtibbles
Copy link
Member

Fixes #156

Which appears after closer examination of the logs to just be an issue with the root logger having an additional handler added to it after Kolibri has been initialized.

Solves this by using a named logger, and holding off on logging until after Kolibri has been initialized.

@rtibbles rtibbles requested a review from jredrejo September 12, 2023 19:17
Copy link
Member

@jredrejo jredrejo left a comment

Choose a reason for hiding this comment

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

Right today I had read this article https://adamj.eu/tech/2023/09/07/introducing-flake8-logging/ , LOG001 is this case. I would not dislike adding this flake8 plugin to our code base

@rtibbles
Copy link
Member Author

Yes, we should probably also be adding LOG-011 but I know that will require some cleanup as we have plenty of violations!

@rtibbles rtibbles merged commit 8af2ff2 into develop Sep 15, 2023
@rtibbles rtibbles deleted the logging_the_log branch September 15, 2023 18:50
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.

Logging for end of task can get repeated

3 participants