From 4c8aa94b4201406ca47073da9cc9d3524ab117bb Mon Sep 17 00:00:00 2001 From: schneefux Date: Tue, 7 Mar 2017 21:41:50 +0100 Subject: log API errors --- crawler.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crawler.py b/crawler.py index ab1f11d..20428b6 100644 --- a/crawler.py +++ b/crawler.py @@ -49,10 +49,9 @@ class Crawler(object): aiohttp.errors.ClientResponseError, aiohttp.errors.ClientOSError, LookupError, - json.decoder.JSONDecodeError): + json.decoder.JSONDecodeError) as err: # API bug? - logging.warning("API error, retrying") - pass + logging.error("API error '%s', retrying", err) await asyncio.sleep(10) async def matches(self, params, region="na"): -- cgit v1.3.1