mirror of
https://github.com/ansible/awx.git
synced 2026-03-28 14:25:05 -02:30
Merge pull request #292 from chrismeyersfsu/fix-fact_receiver_logging
register a logger for fact receiver
This commit is contained in:
@@ -643,6 +643,15 @@ LOGGING = {
|
|||||||
'backupCount': 5,
|
'backupCount': 5,
|
||||||
'formatter':'simple',
|
'formatter':'simple',
|
||||||
},
|
},
|
||||||
|
'fact_receiver': {
|
||||||
|
'level': 'WARNING',
|
||||||
|
'class':'logging.handlers.RotatingFileHandler',
|
||||||
|
'filters': ['require_debug_false'],
|
||||||
|
'filename': os.path.join(LOG_ROOT, 'fact_receiver.log'),
|
||||||
|
'maxBytes': 1024 * 1024 * 5, # 5 MB
|
||||||
|
'backupCount': 5,
|
||||||
|
'formatter':'simple',
|
||||||
|
}
|
||||||
},
|
},
|
||||||
'loggers': {
|
'loggers': {
|
||||||
'django': {
|
'django': {
|
||||||
@@ -677,6 +686,10 @@ LOGGING = {
|
|||||||
'handlers': ['console', 'file', 'task_system'],
|
'handlers': ['console', 'file', 'task_system'],
|
||||||
'propagate': False
|
'propagate': False
|
||||||
},
|
},
|
||||||
|
'awx.main.commands.run_fact_cache_receiver': {
|
||||||
|
'handlers': ['console', 'file', 'fact_receiver'],
|
||||||
|
'propagate': False
|
||||||
|
},
|
||||||
'awx.main.access': {
|
'awx.main.access': {
|
||||||
'handlers': ['null'],
|
'handlers': ['null'],
|
||||||
'propagate': False,
|
'propagate': False,
|
||||||
|
|||||||
Reference in New Issue
Block a user