From 59744e421f60264a8d6aedb008082c1945178f85 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Wed, 2 May 2018 15:18:20 -0400 Subject: [PATCH] send our oddball loggers to external logger too --- awx/settings/defaults.py | 7 ++----- awx/settings/local_settings.py.docker_compose | 7 +++---- installer/roles/image_build/files/settings.py | 7 +++---- installer/roles/kubernetes/templates/configmap.yml.j2 | 7 +++---- 4 files changed, 11 insertions(+), 17 deletions(-) diff --git a/awx/settings/defaults.py b/awx/settings/defaults.py index b4db5c63e1..2150aa77d8 100644 --- a/awx/settings/defaults.py +++ b/awx/settings/defaults.py @@ -1161,16 +1161,13 @@ LOGGING = { 'propagate': False }, 'awx.main.tasks': { - 'handlers': ['task_system'], + 'handlers': ['task_system', 'external_logger'], 'propagate': False }, 'awx.main.scheduler': { - 'handlers': ['task_system'], + 'handlers': ['task_system', 'external_logger'], 'propagate': False }, - 'awx.main.consumers': { - 'handlers': ['null'] - }, 'awx.main.access': { 'handlers': ['null'], 'propagate': False, diff --git a/awx/settings/local_settings.py.docker_compose b/awx/settings/local_settings.py.docker_compose index 7381345b25..8da2628e38 100644 --- a/awx/settings/local_settings.py.docker_compose +++ b/awx/settings/local_settings.py.docker_compose @@ -195,11 +195,10 @@ LOGGING['handlers']['syslog'] = { LOGGING['loggers']['django.request']['handlers'] = ['console'] LOGGING['loggers']['rest_framework.request']['handlers'] = ['console'] -LOGGING['loggers']['awx']['handlers'] = ['console'] +LOGGING['loggers']['awx']['handlers'] = ['console', 'external_logger'] LOGGING['loggers']['awx.main.commands.run_callback_receiver']['handlers'] = ['console'] -LOGGING['loggers']['awx.main.commands.inventory_import']['handlers'] = ['console'] -LOGGING['loggers']['awx.main.tasks']['handlers'] = ['console'] -LOGGING['loggers']['awx.main.scheduler']['handlers'] = ['console'] +LOGGING['loggers']['awx.main.tasks']['handlers'] = ['console', 'external_logger'] +LOGGING['loggers']['awx.main.scheduler']['handlers'] = ['console', 'external_logger'] LOGGING['loggers']['django_auth_ldap']['handlers'] = ['console'] LOGGING['loggers']['social']['handlers'] = ['console'] LOGGING['loggers']['system_tracking_migrations']['handlers'] = ['console'] diff --git a/installer/roles/image_build/files/settings.py b/installer/roles/image_build/files/settings.py index 0610df48dd..4062d9a69a 100644 --- a/installer/roles/image_build/files/settings.py +++ b/installer/roles/image_build/files/settings.py @@ -55,11 +55,10 @@ LOGGING['handlers']['console'] = { LOGGING['loggers']['django.request']['handlers'] = ['console'] LOGGING['loggers']['rest_framework.request']['handlers'] = ['console'] -LOGGING['loggers']['awx']['handlers'] = ['console'] +LOGGING['loggers']['awx']['handlers'] = ['console', 'external_logger'] LOGGING['loggers']['awx.main.commands.run_callback_receiver']['handlers'] = ['console'] -LOGGING['loggers']['awx.main.commands.inventory_import']['handlers'] = ['console'] -LOGGING['loggers']['awx.main.tasks']['handlers'] = ['console'] -LOGGING['loggers']['awx.main.scheduler']['handlers'] = ['console'] +LOGGING['loggers']['awx.main.tasks']['handlers'] = ['console', 'external_logger'] +LOGGING['loggers']['awx.main.scheduler']['handlers'] = ['console', 'external_logger'] LOGGING['loggers']['django_auth_ldap']['handlers'] = ['console'] LOGGING['loggers']['social']['handlers'] = ['console'] LOGGING['loggers']['system_tracking_migrations']['handlers'] = ['console'] diff --git a/installer/roles/kubernetes/templates/configmap.yml.j2 b/installer/roles/kubernetes/templates/configmap.yml.j2 index 47eff32c89..26c44e50da 100644 --- a/installer/roles/kubernetes/templates/configmap.yml.j2 +++ b/installer/roles/kubernetes/templates/configmap.yml.j2 @@ -51,11 +51,10 @@ data: LOGGING['loggers']['django.request']['handlers'] = ['console'] LOGGING['loggers']['rest_framework.request']['handlers'] = ['console'] - LOGGING['loggers']['awx']['handlers'] = ['console'] + LOGGING['loggers']['awx']['handlers'] = ['console', 'external_logger'] LOGGING['loggers']['awx.main.commands.run_callback_receiver']['handlers'] = ['console'] - LOGGING['loggers']['awx.main.commands.inventory_import']['handlers'] = ['console'] - LOGGING['loggers']['awx.main.tasks']['handlers'] = ['console'] - LOGGING['loggers']['awx.main.scheduler']['handlers'] = ['console'] + LOGGING['loggers']['awx.main.tasks']['handlers'] = ['console', 'external_logger'] + LOGGING['loggers']['awx.main.scheduler']['handlers'] = ['console', 'external_logger'] LOGGING['loggers']['django_auth_ldap']['handlers'] = ['console'] LOGGING['loggers']['social']['handlers'] = ['console'] LOGGING['loggers']['system_tracking_migrations']['handlers'] = ['console']