From c11422d52e6adde1b4668851248a563301dc455a Mon Sep 17 00:00:00 2001 From: balki <3070606-balki@users.noreply.gitlab.com> Date: Wed, 19 Dec 2018 02:47:21 -0500 Subject: [PATCH] logging fix --- mail4one/pop3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail4one/pop3.py b/mail4one/pop3.py index 3896da2..a53ad46 100644 --- a/mail4one/pop3.py +++ b/mail4one/pop3.py @@ -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: