From 644444c02f7a8e325fee9f37466958e00cf7dd3e Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Mon, 9 May 2022 17:34:13 +0100 Subject: [PATCH] Add more debug calls in Local library --- handler/sources/local.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/handler/sources/local.py b/handler/sources/local.py index 7a3f5fe..0189b97 100644 --- a/handler/sources/local.py +++ b/handler/sources/local.py @@ -407,14 +407,17 @@ class Local(util.Base): try: rates[cg_asset_name][currency.lower()] except KeyError: - # self.log.error("Error getting public ads for currency {currency}", currency=currency) + self.log.debug(f"Error getting public ads for currency: {currency}") continue ads_list = yield self.enum_public_ads(asset, currency, providers) if not ads_list: + self.log.debug("Error getting ads list.") continue ads = self.money.lookup_rates(self.platform, ads_list, rates=rates) if not ads: + self.log.debug("Error lookup up rates.") continue + self.log.debug("Writing to ES.") self.write_to_es_ads("ads", ads) if currency in public_ads: for ad in list(ads):