Skip to content

Always enable loggers#29

Open
martyngigg wants to merge 1 commit into
mainfrom
django-logs-error
Open

Always enable loggers#29
martyngigg wants to merge 1 commit into
mainfrom
django-logs-error

Conversation

@martyngigg

@martyngigg martyngigg commented Feb 6, 2020

Copy link
Copy Markdown
Member

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
Copy Markdown

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

@martyngigg

Copy link
Copy Markdown
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
@github-actions

Copy link
Copy Markdown

👋 Hi, @martyngigg,

Conflicts have been detected against the base branch. Please rebase your branch against the base branch.

@github-actions github-actions Bot added the Has Conflicts Used by the bot to label pull requests that have conflicts label Sep 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Has Conflicts Used by the bot to label pull requests that have conflicts

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants