|
663 | 663 | name="DJANGO_LOG_LEVEL", default="INFO", description="The log level for django" |
664 | 664 | ) |
665 | 665 |
|
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 | | - |
678 | 666 | HOSTNAME = platform.node().split(".")[0] |
679 | 667 |
|
680 | 668 | # nplusone profiler logger configuration |
|
701 | 689 | "class": "logging.StreamHandler", |
702 | 690 | "formatter": "verbose", |
703 | 691 | }, |
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 | | - }, |
711 | 692 | "mail_admins": { |
712 | 693 | "level": "ERROR", |
713 | 694 | "filters": ["require_debug_false"], |
|
718 | 699 | "django": { |
719 | 700 | "propagate": True, |
720 | 701 | "level": DJANGO_LOG_LEVEL, |
721 | | - "handlers": ["console", "syslog"], |
| 702 | + "handlers": ["console"], |
722 | 703 | }, |
723 | 704 | "django.request": { |
724 | 705 | "handlers": ["mail_admins"], |
|
727 | 708 | }, |
728 | 709 | "nplusone": {"handlers": ["console"], "level": "ERROR"}, |
729 | 710 | }, |
730 | | - "root": {"handlers": ["console", "syslog"], "level": LOG_LEVEL}, |
| 711 | + "root": {"handlers": ["console"], "level": LOG_LEVEL}, |
731 | 712 | } |
732 | 713 |
|
733 | 714 | # server-status |
|
0 commit comments