1 parent 4c0e3e1 commit bdc4b61Copy full SHA for bdc4b61
1 file changed
k8s/settings_local.py
@@ -262,3 +262,9 @@ def _multiline_to_list(s):
262
_csrf_trusted_origins_str = os.environ.get("DATATRACKER_CSRF_TRUSTED_ORIGINS")
263
if _csrf_trusted_origins_str is not None:
264
CSRF_TRUSTED_ORIGINS = _multiline_to_list(_csrf_trusted_origins_str)
265
+
266
+# Send logs to console instead of debug_console when running in kubernetes
267
+LOGGING["loggers"]["django"]["handlers"] = ["console", "mail_admins"]
268
+LOGGING["loggers"]["django.security"]["handlers"] = ["console"]
269
+LOGGING["loggers"]["datatracker"]["handlers"] = ["console"]
270
+LOGGING["loggers"]["celery"]["handlers"] = ["console"]
0 commit comments