Attempt at stuff

This commit is contained in:
Geoffrey Frogeye 2024-07-30 20:24:44 +02:00
parent 2329d67d16
commit c90590640f
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
3 changed files with 6 additions and 3 deletions

View file

@ -145,6 +145,9 @@ class Desk:
delta_s = now - self.last_est
if delta_s > self.MAX_EST_INTERVAL:
# Attempt at fixing the issue of
# the service not working after the night
self._initialize()
self.log.warning(
"Too long without getting a report, "
"assuming the desk might be anywhere now."
@ -262,7 +265,7 @@ class Desk:
if __name__ == "__main__":
logging.basicConfig(level=logging.INFO)
logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger(__name__)
desk = Desk()