mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 10:27:37 -02:30
Update handlers.py
The setFormatter tries to create the external.log file.. So we should check if LOG_AGGREGATOR_AUDIT is active here as well
This commit is contained in:
committed by
Ryan Petrello
parent
7f1096f711
commit
321aa3b01d
@@ -294,6 +294,7 @@ class AWXProxyHandler(logging.Handler):
|
|||||||
super(AWXProxyHandler, self).__init__(**kwargs)
|
super(AWXProxyHandler, self).__init__(**kwargs)
|
||||||
self._handler = None
|
self._handler = None
|
||||||
self._old_kwargs = {}
|
self._old_kwargs = {}
|
||||||
|
if settings.LOG_AGGREGATOR_AUDIT:
|
||||||
self._auditor = logging.handlers.RotatingFileHandler(
|
self._auditor = logging.handlers.RotatingFileHandler(
|
||||||
filename='/var/log/tower/external.log',
|
filename='/var/log/tower/external.log',
|
||||||
maxBytes=1024 * 1024 * 50, # 50 MB
|
maxBytes=1024 * 1024 * 50, # 50 MB
|
||||||
|
|||||||
Reference in New Issue
Block a user