From 5706028656674f1dc12d75f8e4a788e968dfb546 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 11 Jul 2022 08:46:47 -0700 Subject: [PATCH] Log failing to connect as info instead of exception These are normal, expected errors, and while we should probably re-evaluate the connectors in some way, pending that, there's no need to log these as unepected errors, which causes confusion and clutters my error logging. --- bookwyrm/connectors/connector_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/connectors/connector_manager.py b/bookwyrm/connectors/connector_manager.py index 37b093aa9..385880e5a 100644 --- a/bookwyrm/connectors/connector_manager.py +++ b/bookwyrm/connectors/connector_manager.py @@ -53,7 +53,7 @@ async def get_results(session, url, min_confidence, query, connector): except asyncio.TimeoutError: logger.info("Connection timed out for url: %s", url) except aiohttp.ClientError as err: - logger.exception(err) + logger.info(err) async def async_connector_search(query, items, min_confidence):