diff --git a/src/config/settings/production.py b/src/config/settings/production.py index 04b25fb..6d27188 100644 --- a/src/config/settings/production.py +++ b/src/config/settings/production.py @@ -64,7 +64,7 @@ CACHES = { } } -# Logging for production +# Logging for production (stdout for Docker) LOGGING = { "version": 1, "disable_existing_loggers": False, @@ -75,36 +75,29 @@ LOGGING = { }, }, "handlers": { - "file": { + "console": { "level": "INFO", - "class": "logging.handlers.RotatingFileHandler", - "filename": "/app/logs/app.log", - "maxBytes": 1024 * 1024 * 15, # 15MB - "backupCount": 10, + "class": "logging.StreamHandler", "formatter": "verbose", }, - "mail_admins": { - "level": "ERROR", - "class": "django.utils.log.AdminEmailHandler", - }, }, "root": { - "handlers": ["file"], + "handlers": ["console"], "level": "INFO", }, "loggers": { "django": { - "handlers": ["file"], + "handlers": ["console"], "level": "INFO", "propagate": False, }, "apps.data_processor": { - "handlers": ["file"], + "handlers": ["console"], "level": "INFO", "propagate": False, }, "apps.scraping": { - "handlers": ["file"], + "handlers": ["console"], "level": "INFO", "propagate": False, },