From e88a6d462d9c6e7f019b39ac8d1a71db0857e7c2 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sun, 13 Feb 2022 22:21:49 +0000 Subject: [PATCH] Remove all cheat output --- handler/agora.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/handler/agora.py b/handler/agora.py index 97d17c5..560c59b 100644 --- a/handler/agora.py +++ b/handler/agora.py @@ -480,7 +480,7 @@ class Agora(object): Slow ad equation update utilising exponential backoff in order to guarantee all ads are updated. :param ads: our list of ads """ - self.log.info("Beginning slow ad update for {num} ads", num=len(ads)) + # self.log.info("Beginning slow ad update for {num} ads", num=len(ads)) iterations = 0 throttled = 0 assets = set() @@ -512,17 +512,17 @@ class Agora(object): self.log.error("Error updating ad {ad_id}: {response}", ad_id=ad_id, response=rtrn["response"]) continue iterations += 1 - if iterations == 0: - self.log.info("Slow ad update finished, no ads to update") - # self.irc.sendmsg("Slow ad update finished, no ads to update") - else: - self.log.info( - "Slow ad update completed with {iterations} iterations: [{assets}] | [{currencies}]", - iterations=iterations, - assets=", ".join(assets), - currencies=", ".join(currencies), - ) - # self.irc.sendmsg(f"Slow ad update completed with {iterations} iterations: [{', '.join(assets)}] | [{', '.join(currencies)}]") + # if iterations == 0: + # self.log.info("Slow ad update finished, no ads to update") + # self.irc.sendmsg("Slow ad update finished, no ads to update") + # else: + # self.log.info( + # "Slow ad update completed with {iterations} iterations: [{assets}] | [{currencies}]", + # iterations=iterations, + # assets=", ".join(assets), + # currencies=", ".join(currencies), + # ) + # self.irc.sendmsg(f"Slow ad update completed with {iterations} iterations: [{', '.join(assets)}] | [{', '.join(currencies)}]") @handle_exceptions def nuke_ads(self):