Remove unneeded logging sock variable

This commit is contained in:
Christian Adams
2020-03-13 17:31:04 -04:00
parent eb12f45e8e
commit 7fd79b8e54
3 changed files with 4 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ def construct_rsyslog_conf_template(settings=settings):
port = settings.LOG_AGGREGATOR_PORT
parts.extend([
'input(type="imuxsock" Socket="' + settings.LOGGING_SOCK + '" unlink="on")',
'input(type="imuxsock" Socket="' + settings.LOGGING['handlers']['external_logger'] + '" unlink="on")',
'template(name="awx" type="string" string="%msg%")',
])
if protocol.startswith('http'):
@@ -68,7 +68,7 @@ def construct_rsyslog_conf_template(settings=settings):
return tmpl
def reconfigure_rsyslog():
tmpl = get_rsyslog_conf_template()
tmpl = construct_rsyslog_conf_template()
with open('/var/lib/awx/rsyslog/rsyslog.conf', 'w') as f:
f.write(tmpl + '\n')
supervisor_service_command(command='restart', service='awx-rsyslogd')