mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 14:27:42 -02:30
Manage null default state for logging integration and DB definition
This commit is contained in:
@@ -14,6 +14,7 @@ from requests_futures.sessions import FuturesSession
|
||||
|
||||
# custom
|
||||
from django.conf import settings as django_settings
|
||||
from django.utils.log import NullHandler
|
||||
|
||||
# AWX external logging handler, generally designed to be used
|
||||
# with the accompanying LogstashHandler, derives from python-logstash library
|
||||
@@ -36,6 +37,13 @@ def unused_callback(sess, resp):
|
||||
pass
|
||||
|
||||
|
||||
class HTTPSNullHandler(NullHandler):
|
||||
"Placeholder null handler to allow loading without database access"
|
||||
|
||||
def __init__(self, host, **kwargs):
|
||||
return super(HTTPSNullHandler, self).__init__()
|
||||
|
||||
|
||||
class HTTPSHandler(logging.Handler):
|
||||
def __init__(self, fqdn=False, **kwargs):
|
||||
super(HTTPSHandler, self).__init__()
|
||||
|
||||
Reference in New Issue
Block a user