mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
Attach handlers to django_auth_ldap
To assist with debugging LDAP authentication, associate the 'django_auth_ldap' handler with the 'tower_warnings' logger. To enable debugging, set the following in a tower settings file: > LOGGING['handlers']['tower_warnings']['level'] = 'DEBUG' Also uses the proper `filename` for the tower_warnings log file.
This commit is contained in:
parent
5845730cf6
commit
eb95ba94fb
@ -721,7 +721,7 @@ LOGGING = {
|
||||
'level': 'WARNING',
|
||||
'class':'logging.handlers.RotatingFileHandler',
|
||||
'filters': ['require_debug_false'],
|
||||
'filename': os.path.join(LOG_ROOT, 'tower_warnings.log'),
|
||||
'filename': os.path.join(LOG_ROOT, 'tower.log'),
|
||||
'maxBytes': 1024 * 1024 * 5, # 5 MB
|
||||
'backupCount': 5,
|
||||
'formatter':'simple',
|
||||
@ -813,7 +813,8 @@ LOGGING = {
|
||||
'propagate': False,
|
||||
},
|
||||
'django_auth_ldap': {
|
||||
'handlers': ['null'],
|
||||
'handlers': ['console', 'file', 'tower_warnings'],
|
||||
'level': 'DEBUG',
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user