Be less spammy when SpaceAPI update fails
authorRalf Jung <post@ralfj.de>
Wed, 27 Nov 2013 19:20:47 +0000 (20:20 +0100)
committerRalf Jung <post@ralfj.de>
Wed, 27 Nov 2013 19:20:47 +0000 (20:20 +0100)
spaceapi.py

index 7f788ab4b32aee8897b48f60e2f944139c28069f..181981ada949494c91e97ce9f22d5dafd1d32b71 100644 (file)
@@ -51,5 +51,5 @@ class SpaceApi:
                                self._fail_count = 0
                        else:
                                self._fail_count += 1
                                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)
                                        logger.critical("Updating the SpaceAPI failed %d times in a row" % self._fail_count)