Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always enable loggers #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Always enable loggers #29

wants to merge 1 commit into from

Conversation

martyngigg
Copy link
Member

@martyngigg martyngigg commented Feb 6, 2020

Currently the loggers are only enabled for DEBUG so in production we miss all of the ERROR logs. This enables the console logger by default but switches the level between DEBUG/ERROR depending on the environment.

To Test

Check locally by introducing some raise ValueError("Bad value") into a code path and check it is visible in the docker-compose logs web

@cailafinn
Copy link

Is this and #50 still worth keeping around @martyngigg?

@martyngigg
Copy link
Member Author

Is this and #50 still worth keeping around @martyngigg?

Sorry I seemed to ignore this! I didn't get the notification for some reason. I think this change is worth making so that ERRORS show in the docker logs in production. I'll rebase and fix the conflicts.

In production onl ERROR level messages are shown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

Successfully merging this pull request may close these issues.

2 participants