From 45e5b3b219be8030b42720b84dffe6fc01e57e7d Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Tue, 4 May 2021 01:16:29 -0300 Subject: [PATCH] dont log full pages --- lbry/extras/daemon/exchange_rate_manager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lbry/extras/daemon/exchange_rate_manager.py b/lbry/extras/daemon/exchange_rate_manager.py index b9ca80ba8..dddac741d 100644 --- a/lbry/extras/daemon/exchange_rate_manager.py +++ b/lbry/extras/daemon/exchange_rate_manager.py @@ -86,7 +86,9 @@ class MarketFeed: except asyncio.TimeoutError: log.warning("Timed out fetching exchange rate from %s.", self.name) except json.JSONDecodeError as e: - log.warning("Could not parse exchange rate response from %s: %s", self.name, e.doc) + msg = e.doc if '' not in e.doc else 'unexpected content type.' + log.warning("Could not parse exchange rate response from %s: %s", self.name, msg) + log.debug(msg) except InvalidExchangeRateResponseError as e: log.warning(str(e)) except Exception as e: