Add more debug calls in Local library

This commit is contained in:
Mark Veidemanis 2022-05-09 17:34:13 +01:00
parent 294e6b0e77
commit 644444c02f
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 4 additions and 1 deletions

View File

@ -407,14 +407,17 @@ class Local(util.Base):
try: try:
rates[cg_asset_name][currency.lower()] rates[cg_asset_name][currency.lower()]
except KeyError: 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 continue
ads_list = yield self.enum_public_ads(asset, currency, providers) ads_list = yield self.enum_public_ads(asset, currency, providers)
if not ads_list: if not ads_list:
self.log.debug("Error getting ads list.")
continue continue
ads = self.money.lookup_rates(self.platform, ads_list, rates=rates) ads = self.money.lookup_rates(self.platform, ads_list, rates=rates)
if not ads: if not ads:
self.log.debug("Error lookup up rates.")
continue continue
self.log.debug("Writing to ES.")
self.write_to_es_ads("ads", ads) self.write_to_es_ads("ads", ads)
if currency in public_ads: if currency in public_ads:
for ad in list(ads): for ad in list(ads):