mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 07:17:40 -02:30
Respect dynamic log setting for console, downgrade exit log
This commit is contained in:
@@ -188,7 +188,7 @@ class BaseWorker(object):
|
|||||||
if 'uuid' in body:
|
if 'uuid' in body:
|
||||||
uuid = body['uuid']
|
uuid = body['uuid']
|
||||||
finished.put(uuid)
|
finished.put(uuid)
|
||||||
logger.warn('worker exiting gracefully pid:{}'.format(os.getpid()))
|
logger.debug('worker exiting gracefully pid:{}'.format(os.getpid()))
|
||||||
|
|
||||||
def perform_work(self, body):
|
def perform_work(self, body):
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|||||||
@@ -795,7 +795,12 @@ LOGGING = {
|
|||||||
'job_lifecycle': {'()': 'awx.main.utils.formatters.JobLifeCycleFormatter'},
|
'job_lifecycle': {'()': 'awx.main.utils.formatters.JobLifeCycleFormatter'},
|
||||||
},
|
},
|
||||||
'handlers': {
|
'handlers': {
|
||||||
'console': {'()': 'logging.StreamHandler', 'level': 'DEBUG', 'filters': ['require_debug_true_or_test', 'guid'], 'formatter': 'simple'},
|
'console': {
|
||||||
|
'()': 'logging.StreamHandler',
|
||||||
|
'level': 'DEBUG',
|
||||||
|
'filters': ['require_debug_true_or_test', 'dynamic_level_filter', 'guid'],
|
||||||
|
'formatter': 'simple',
|
||||||
|
},
|
||||||
'null': {'class': 'logging.NullHandler'},
|
'null': {'class': 'logging.NullHandler'},
|
||||||
'file': {'class': 'logging.NullHandler', 'formatter': 'simple'},
|
'file': {'class': 'logging.NullHandler', 'formatter': 'simple'},
|
||||||
'syslog': {'level': 'WARNING', 'filters': ['require_debug_false'], 'class': 'logging.NullHandler', 'formatter': 'simple'},
|
'syslog': {'level': 'WARNING', 'filters': ['require_debug_false'], 'class': 'logging.NullHandler', 'formatter': 'simple'},
|
||||||
|
|||||||
Reference in New Issue
Block a user