logging fix

This commit is contained in:
Balakrishnan Balasubramanian 2018-12-19 02:47:21 -05:00
parent 54ab1c7f98
commit c11422d52e

View File

@ -247,9 +247,9 @@ async def new_session(stream_reader: asyncio.StreamReader, stream_writer: asynci
except ClientError as c:
write(err("Something went wrong"))
logging.error(f"Unexpected client error", c)
logging.error(f"Unexpected client error: {c}")
except Exception as e:
logging.error(f"Serious client error", e)
logging.error(f"Serious client error: {e}")
raise
finally:
if username: