Skip to content

Update default log levels

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 by Erik Kalkoken

Merge request reports