🔊(backend) update logger config to get info

This sets the default logging level to INFO.
This will help to see what actually happens
in our several deployments.
This commit is contained in:
Quentin BEY
2024-11-20 16:10:47 +01:00
committed by BEY Quentin
parent 8414a7af4d
commit dfecb83c0a
2 changed files with 36 additions and 15 deletions

View File

@@ -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

View File

@@ -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="