Skip to content

Commit bdc4b61

Browse files
chore: configure logging for k8s (ietf-tools#7525)
1 parent 4c0e3e1 commit bdc4b61

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

k8s/settings_local.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,3 +262,9 @@ def _multiline_to_list(s):
262262
_csrf_trusted_origins_str = os.environ.get("DATATRACKER_CSRF_TRUSTED_ORIGINS")
263263
if _csrf_trusted_origins_str is not None:
264264
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

Comments
 (0)