Parcourir la source

1 more debug statement

david il y a 4 ans
Parent
commit
aa025b9c54
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      config.py

+ 1 - 0
config.py

@@ -98,6 +98,7 @@ def check_blocks():
     now = pendulum.now()
     for ip in blocks:
         dt = pendulum.parse(blocks[ip])
+        log.debug("IP={0} TIME_LEFT={1}".format(ip, abs(now.diff(dt, False).in_hours())))
         if abs(now.diff(dt, False).in_hours()) < conf["block_time"]:
             # Oops, this ip needs to be unblocked
             result.append(ip)