diff --git a/CHANGELOG.md b/CHANGELOG.md index 58674b2..f3b3389 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,10 @@ and this project adheres to - ✨(domains) allow creation of "pending" mailboxes - ✨(teams) allow team management for team admins/owners #509 +### Fixed + +- 🔊(backend) update logger config to info #542 + ## [1.5.0] - 2024-11-14 ### Removed diff --git a/src/backend/people/settings.py b/src/backend/people/settings.py index 6614af9..c73175a 100755 --- a/src/backend/people/settings.py +++ b/src/backend/people/settings.py @@ -584,23 +584,40 @@ class Development(Base): USE_SWAGGER = True - LOGGING = values.DictValue( - { - "version": 1, - "disable_existing_loggers": False, - "handlers": { - "console": { - "class": "logging.StreamHandler", - }, + LOGGING = { + "version": 1, + "disable_existing_loggers": False, + "formatters": { + "simple": { + "format": "{asctime} {name} {levelname} {message}", + "style": "{", }, - "loggers": { - "core": { - "handlers": ["console"], - "level": "DEBUG", - }, + }, + "handlers": { + "console": { + "class": "logging.StreamHandler", + "formatter": "simple", }, - } - ) + }, + # Override root logger to send it to console + "root": { + "handlers": ["console"], + "level": values.Value( + "INFO", environ_name="LOGGING_LEVEL_LOGGERS_ROOT", environ_prefix=None + ), + }, + "loggers": { + "core": { + "handlers": ["console"], + "level": values.Value( + "INFO", + environ_name="LOGGING_LEVEL_LOGGERS_APP", + environ_prefix=None, + ), + "propagate": False, + }, + }, + } # this is a dev credentials for mail provisioning API MAIL_PROVISIONING_API_CREDENTIALS = "bGFfcmVnaWU6cGFzc3dvcmQ="