Skip to content

chore: remove syslog handler from settings.py#7427

Merged
rjsparks merged 1 commit intoietf-tools:feat/k8sfrom
jennifer-richards:disable-syslog-default
May 16, 2024
Merged

chore: remove syslog handler from settings.py#7427
rjsparks merged 1 commit intoietf-tools:feat/k8sfrom
jennifer-richards:disable-syslog-default

Conversation

@jennifer-richards
Copy link
Copy Markdown
Member

System-level integration like this really needs to be in settings_local. This was causing problems when running in the dev environment.

To get the effect we want on ietfa, we should add the following to settings_local.py:

LOGGING["handlers"]["syslog"] = {
    'level': 'DEBUG',
    'class': 'logging.handlers.SysLogHandler',
    'facility': 'user',
    'formatter': 'plain',
    'address': '/dev/log',
}
LOGGING["loggers"]["datatracker"]["handlers"] = ["syslog"]
LOGGING["loggers"]["celery"]["handlers"] = ["syslog"]

System-level integration like this really needs
to be in settings_local. This was causing problems
when running in the dev environment.
@rjsparks rjsparks merged commit d9c6ae7 into ietf-tools:feat/k8s May 16, 2024
@jennifer-richards jennifer-richards deleted the disable-syslog-default branch May 16, 2024 20:08
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants