From: Ralf Jung Date: Wed, 27 Nov 2013 19:20:47 +0000 (+0100) Subject: Be less spammy when SpaceAPI update fails X-Git-Url: https://git.ralfj.de/saartuer.git/commitdiff_plain/b43971d227ed5ab3e86ae29f3496e84d07edd202 Be less spammy when SpaceAPI update fails --- diff --git a/spaceapi.py b/spaceapi.py index 7f788ab..181981a 100644 --- a/spaceapi.py +++ b/spaceapi.py @@ -51,5 +51,5 @@ class SpaceApi: self._fail_count = 0 else: self._fail_count += 1 - if self._fail_count in (5, 50, 500): + if self._fail_count in (5, 100): logger.critical("Updating the SpaceAPI failed %d times in a row" % self._fail_count)