Improve log message

This commit is contained in:
Unrud 2020-10-04 05:40:46 +02:00
parent a9804dd550
commit 18f21e26d5

View File

@ -97,7 +97,7 @@ class ParallelHTTPServer(socketserver.ThreadingMixIn,
def handle_error(self, request, client_address): def handle_error(self, request, client_address):
if issubclass(sys.exc_info()[0], socket.timeout): if issubclass(sys.exc_info()[0], socket.timeout):
logger.info("client timed out", exc_info=True) logger.info("Client timed out", exc_info=True)
else: else:
logger.error("An exception occurred during request: %s", logger.error("An exception occurred during request: %s",
sys.exc_info()[1], exc_info=True) sys.exc_info()[1], exc_info=True)