Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • allianceauth allianceauth
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 87
    • Issues 87
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 11
    • Merge requests 11
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Alliance Auth
  • allianceauthallianceauth
  • Merge requests
  • !1274

Update default log levels

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Erik Kalkoken requested to merge ErikKalkoken/allianceauth:update_log_levels into master Nov 28, 2020
  • Overview 15
  • Commits 1
  • Pipelines 1
  • Changes 1

Problem

Th default Auth log levels for esi and console are currently set to DEBUG. DEBUG log levels have an significant performance impact and make it harder to see problems in logs due to lots of additional noise. There are therefore not a good choice for a production environment. Consequently, the default log level for Auth is set to INFO (e.g. log_file). And the log level for esi and console should follow suit.

The esi level affects the worker.log, the console DEBUG log level affects the gunicorn log.

Solution

  • esi is set to INFO, which in my opinion will provide sufficient information, but far less noise.
  • console is set to CRITICAL, because in my opinion only CRITICAL errors need to be logged to the gunicorn log, since most log entries are duplicates of allianceauth log.

Closes #1274

Edited Nov 29, 2020 by Erik Kalkoken
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: update_log_levels