Commit 14d57a8b authored by Iustin Pop's avatar Iustin Pop
Browse files

ganeti-noded: reduce log noise

The source port/addr is currently logged three times for each
connection, and this is unnecessary. We change two log entries to debug,
since they are useful for precise timing, and we keep only one at INFO
level.

Reviewed-by: imsnah
parent 801cda94
...@@ -253,7 +253,7 @@ class _HttpServerRequestExecutor(object): ...@@ -253,7 +253,7 @@ class _HttpServerRequestExecutor(object):
# Operate in non-blocking mode # Operate in non-blocking mode
self.sock.setblocking(0) self.sock.setblocking(0)
logging.info("Connection from %s:%s", client_addr[0], client_addr[1]) logging.debug("Connection from %s:%s", client_addr[0], client_addr[1])
try: try:
request_msg_reader = None request_msg_reader = None
force_close = True force_close = True
...@@ -286,7 +286,7 @@ class _HttpServerRequestExecutor(object): ...@@ -286,7 +286,7 @@ class _HttpServerRequestExecutor(object):
self.sock.close() self.sock.close()
self.sock = None self.sock = None
finally: finally:
logging.info("Disconnected %s:%s", client_addr[0], client_addr[1]) logging.debug("Disconnected %s:%s", client_addr[0], client_addr[1])
def _ReadRequest(self): def _ReadRequest(self):
"""Reads a request sent by client. """Reads a request sent by client.
......
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