fix some log messages

This commit is contained in:
Bastian Schroll 2019-10-24 10:08:07 +02:00
parent a3494b54a6
commit 60d05dc235
2 changed files with 5 additions and 4 deletions

View file

@ -57,8 +57,8 @@ class _ThreadedTCPRequestHandler(socketserver.BaseRequestHandler):
if data == "<keep-alive>":
continue
logging.debug("%s recv header: '%s'", req_name, header)
logging.debug("%s recv %d bytes:\n%s", req_name, length, pformat(data))
logging.debug("%s recv header: %s", req_name, header)
logging.debug("%s recv %d bytes:\n%s", req_name, len(data), pformat(data))
# add a new entry and the decoded data dict as an string in utf-8 and an timestamp
self.server.alarmQueue.put_nowait((self.client_address[0], data, time.time())) # queue is threadsafe