|
430 | 430 | DJANGO_LOG_LEVEL = get_string("DJANGO_LOG_LEVEL", "INFO")
|
431 | 431 | OS_LOG_LEVEL = get_string("OS_LOG_LEVEL", "INFO")
|
432 | 432 |
|
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 |
| - |
437 | 433 | HOSTNAME = platform.node().split(".")[0]
|
438 | 434 |
|
439 | 435 | # nplusone profiler logger configuration
|
|
460 | 456 | "class": "logging.StreamHandler",
|
461 | 457 | "formatter": "verbose",
|
462 | 458 | },
|
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 |
| - }, |
470 | 459 | "mail_admins": {
|
471 | 460 | "level": "ERROR",
|
472 | 461 | "filters": ["require_debug_false"],
|
|
477 | 466 | "django": {
|
478 | 467 | "propagate": True,
|
479 | 468 | "level": DJANGO_LOG_LEVEL,
|
480 |
| - "handlers": ["console", "syslog"], |
| 469 | + "handlers": ["console"], |
481 | 470 | },
|
482 | 471 | "django.request": {
|
483 | 472 | "handlers": ["mail_admins"],
|
|
488 | 477 | "nplusone": {"handlers": ["console"], "level": "ERROR"},
|
489 | 478 | "boto3": {"handlers": ["console"], "level": "ERROR"},
|
490 | 479 | },
|
491 |
| - "root": {"handlers": ["console", "syslog"], "level": LOG_LEVEL}, |
| 480 | + "root": {"handlers": ["console"], "level": LOG_LEVEL}, |
492 | 481 | }
|
493 | 482 |
|
494 | 483 | STATUS_TOKEN = get_string("STATUS_TOKEN", "")
|
|
0 commit comments