Skip to content

Commit ddfb856

Browse files
authored
refactor: Remove syslog logging handler (#2663)
1 parent 077b7aa commit ddfb856

File tree

2 files changed

+2
-29
lines changed

2 files changed

+2
-29
lines changed

app.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -430,14 +430,6 @@
430430
"description": "E-mail to use for the from field",
431431
"required": false
432432
},
433-
"MITX_ONLINE_LOG_HOST": {
434-
"description": "Remote syslog server hostname",
435-
"required": false
436-
},
437-
"MITX_ONLINE_LOG_HOST_PORT": {
438-
"description": "Remote syslog server port",
439-
"required": false
440-
},
441433
"MITX_ONLINE_LOG_LEVEL": {
442434
"description": "The log level default",
443435
"required": false

main/settings.py

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -663,18 +663,6 @@
663663
name="DJANGO_LOG_LEVEL", default="INFO", description="The log level for django"
664664
)
665665

666-
# For logging to a remote syslog host
667-
LOG_HOST = get_string(
668-
name="MITX_ONLINE_LOG_HOST",
669-
default="localhost",
670-
description="Remote syslog server hostname",
671-
)
672-
LOG_HOST_PORT = get_int(
673-
name="MITX_ONLINE_LOG_HOST_PORT",
674-
default=514,
675-
description="Remote syslog server port",
676-
)
677-
678666
HOSTNAME = platform.node().split(".")[0]
679667

680668
# nplusone profiler logger configuration
@@ -701,13 +689,6 @@
701689
"class": "logging.StreamHandler",
702690
"formatter": "verbose",
703691
},
704-
"syslog": {
705-
"level": LOG_LEVEL,
706-
"class": "logging.handlers.SysLogHandler",
707-
"facility": "local7",
708-
"formatter": "verbose",
709-
"address": (LOG_HOST, LOG_HOST_PORT),
710-
},
711692
"mail_admins": {
712693
"level": "ERROR",
713694
"filters": ["require_debug_false"],
@@ -718,7 +699,7 @@
718699
"django": {
719700
"propagate": True,
720701
"level": DJANGO_LOG_LEVEL,
721-
"handlers": ["console", "syslog"],
702+
"handlers": ["console"],
722703
},
723704
"django.request": {
724705
"handlers": ["mail_admins"],
@@ -727,7 +708,7 @@
727708
},
728709
"nplusone": {"handlers": ["console"], "level": "ERROR"},
729710
},
730-
"root": {"handlers": ["console", "syslog"], "level": LOG_LEVEL},
711+
"root": {"handlers": ["console"], "level": LOG_LEVEL},
731712
}
732713

733714
# server-status

0 commit comments

Comments
 (0)