Commit f09c1927 authored by Ad Schellevis's avatar Ad Schellevis

additional logging information included for configd

parent ffc617a0
...@@ -138,6 +138,8 @@ class HandlerClient(threading.Thread): ...@@ -138,6 +138,8 @@ class HandlerClient(threading.Thread):
:return: None :return: None
""" """
result = ''
exec_command = ''
try: try:
# receive command, maximum data length is 4k... longer messages will be truncated # receive command, maximum data length is 4k... longer messages will be truncated
data = self.connection.recv(4096) data = self.connection.recv(4096)
...@@ -168,7 +170,7 @@ class HandlerClient(threading.Thread): ...@@ -168,7 +170,7 @@ class HandlerClient(threading.Thread):
self.connection.sendall('%s\n'%result) self.connection.sendall('%s\n'%result)
except: except:
print (traceback.format_exc()) print (traceback.format_exc())
syslog.syslog(syslog.LOG_ERR,'unable to sendback response, message was %s'%traceback.format_exc()) syslog.syslog(syslog.LOG_ERR,'unable to sendback response [%s] for [%s], message was %s'%(result,exec_command ,traceback.format_exc()))
finally: finally:
self.connection.close() self.connection.close()
......
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