Commit 947ec341 by Daniel Hokka Zakrisson

Merge pull request #1807 from willthames/openlog_unicode_fix

syslog.openlog does not cope with unicode first argument
parents 04f70667 5ef077e5
......@@ -549,7 +549,7 @@ class AnsibleModule(object):
journal.sendv(*journal_args)
else:
msg = ''
syslog.openlog('ansible-%s' % os.path.basename(__file__), 0, syslog.LOG_USER)
syslog.openlog('ansible-%s' % str(os.path.basename(__file__)), 0, syslog.LOG_USER)
for arg in log_args:
msg = msg + arg + '=' + str(log_args[arg]) + ' '
if msg:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment