Skip to content

Commit cda22e8

Browse files
authored
config: Remove syslog handler (#2250)
Now that this app is not running on Heroku there's no need to use the syslog handler
1 parent 07ff7cf commit cda22e8

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

main/settings.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -430,10 +430,6 @@
430430
DJANGO_LOG_LEVEL = get_string("DJANGO_LOG_LEVEL", "INFO")
431431
OS_LOG_LEVEL = get_string("OS_LOG_LEVEL", "INFO")
432432

433-
# For logging to a remote syslog host
434-
LOG_HOST = get_string("MITOL_LOG_HOST", "localhost")
435-
LOG_HOST_PORT = get_int("MITOL_LOG_HOST_PORT", 514)
436-
437433
HOSTNAME = platform.node().split(".")[0]
438434

439435
# nplusone profiler logger configuration
@@ -460,13 +456,6 @@
460456
"class": "logging.StreamHandler",
461457
"formatter": "verbose",
462458
},
463-
"syslog": {
464-
"level": LOG_LEVEL,
465-
"class": "logging.handlers.SysLogHandler",
466-
"facility": "local7",
467-
"formatter": "verbose",
468-
"address": (LOG_HOST, LOG_HOST_PORT),
469-
},
470459
"mail_admins": {
471460
"level": "ERROR",
472461
"filters": ["require_debug_false"],
@@ -477,7 +466,7 @@
477466
"django": {
478467
"propagate": True,
479468
"level": DJANGO_LOG_LEVEL,
480-
"handlers": ["console", "syslog"],
469+
"handlers": ["console"],
481470
},
482471
"django.request": {
483472
"handlers": ["mail_admins"],
@@ -488,7 +477,7 @@
488477
"nplusone": {"handlers": ["console"], "level": "ERROR"},
489478
"boto3": {"handlers": ["console"], "level": "ERROR"},
490479
},
491-
"root": {"handlers": ["console", "syslog"], "level": LOG_LEVEL},
480+
"root": {"handlers": ["console"], "level": LOG_LEVEL},
492481
}
493482

494483
STATUS_TOKEN = get_string("STATUS_TOKEN", "")

0 commit comments

Comments
 (0)