Add more debug calls in Local library
This commit is contained in:
parent
294e6b0e77
commit
644444c02f
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue