From 889130620862a33513bce3941fe69d76f9bb363f Mon Sep 17 00:00:00 2001 From: Markus-Rost Date: Fri, 14 Aug 2020 08:29:10 +0200 Subject: [PATCH] trimmed error.log --- src/wiki.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wiki.py b/src/wiki.py index e7f5a0b..8f05f28 100644 --- a/src/wiki.py +++ b/src/wiki.py @@ -48,7 +48,7 @@ class Wiki: response = await session.get(url_path, params=params) ratelimiter.timeout_add(1.0) except (aiohttp.ClientConnectionError, aiohttp.ServerTimeoutError, asyncio.TimeoutError): - logger.exception("A connection error occurred while requesting {}".format(url_path)) + logger.error("A connection error occurred while requesting {}".format(url_path)) raise WikiServerError return response @@ -74,7 +74,7 @@ class Wiki: request.raise_for_status() json_request = await request.json(encoding="UTF-8") except (aiohttp.ClientConnectionError, aiohttp.ServerTimeoutError, asyncio.TimeoutError): - logger.exception("Reached connection error for request on link {url}".format(url=url)) + logger.error("Reached connection error for request on link {url}".format(url=url)) else: try: for item in keys: