Remove more cheat debugging and useless output
This commit is contained in:
parent
a064e65068
commit
a639b32727
|
@ -514,7 +514,7 @@ class Agora(object):
|
||||||
iterations += 1
|
iterations += 1
|
||||||
if iterations == 0:
|
if iterations == 0:
|
||||||
self.log.info("Slow ad update finished, no ads to update")
|
self.log.info("Slow ad update finished, no ads to update")
|
||||||
self.irc.sendmsg("Slow ad update finished, no ads to update")
|
# self.irc.sendmsg("Slow ad update finished, no ads to update")
|
||||||
else:
|
else:
|
||||||
self.log.info(
|
self.log.info(
|
||||||
"Slow ad update completed with {iterations} iterations: [{assets}] | [{currencies}]",
|
"Slow ad update completed with {iterations} iterations: [{assets}] | [{currencies}]",
|
||||||
|
@ -522,7 +522,7 @@ class Agora(object):
|
||||||
assets=", ".join(assets),
|
assets=", ".join(assets),
|
||||||
currencies=", ".join(currencies),
|
currencies=", ".join(currencies),
|
||||||
)
|
)
|
||||||
self.irc.sendmsg(f"Slow ad update completed with {iterations} iterations: [{', '.join(assets)}] | [{', '.join(currencies)}]")
|
# self.irc.sendmsg(f"Slow ad update completed with {iterations} iterations: [{', '.join(assets)}] | [{', '.join(currencies)}]")
|
||||||
|
|
||||||
@handle_exceptions
|
@handle_exceptions
|
||||||
def nuke_ads(self):
|
def nuke_ads(self):
|
||||||
|
|
|
@ -55,7 +55,7 @@ class Markets(object):
|
||||||
try:
|
try:
|
||||||
public_ads_currency = public_ads[currency]
|
public_ads_currency = public_ads[currency]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
self.log.error("Error getting public ads for currency {currency}", currency=currency)
|
# self.log.error("Error getting public ads for currency {currency}", currency=currency)
|
||||||
if currency == "USD":
|
if currency == "USD":
|
||||||
self.log.error("Error getting public ads for currency USD, aborting")
|
self.log.error("Error getting public ads for currency USD, aborting")
|
||||||
break
|
break
|
||||||
|
@ -71,7 +71,7 @@ class Markets(object):
|
||||||
if not our_ads:
|
if not our_ads:
|
||||||
continue
|
continue
|
||||||
new_margin = self.autoprice(public_ads_filtered, currency)
|
new_margin = self.autoprice(public_ads_filtered, currency)
|
||||||
self.log.info("New rate for {currency}: {rate}", currency=currency, rate=new_margin)
|
# self.log.info("New rate for {currency}: {rate}", currency=currency, rate=new_margin)
|
||||||
new_formula = f"coingecko{asset.lower()}usd*usd{currency.lower()}*{new_margin}"
|
new_formula = f"coingecko{asset.lower()}usd*usd{currency.lower()}*{new_margin}"
|
||||||
for ad in our_ads:
|
for ad in our_ads:
|
||||||
ad_id = ad[0]
|
ad_id = ad[0]
|
||||||
|
|
Loading…
Reference in New Issue