diff --git a/src/app/settings.py b/src/app/settings.py index f5af54d..7f65e4d 100644 --- a/src/app/settings.py +++ b/src/app/settings.py @@ -62,6 +62,23 @@ MIDDLEWARE = [ "allauth.account.middleware.AccountMiddleware", ] +### +# Logging configuration + +LOGGING = { + "version": 1, + "disable_existing_loggers": False, + "handlers": { + "console": { + "class": "logging.StreamHandler", + }, + }, + "root": { + "handlers": ["console"], + "level": credentials.get("LOG_LEVEL", "WARNING"), + }, +} + ### # The main url configuration