Attempt at stuff
This commit is contained in:
parent
2329d67d16
commit
c90590640f
3 changed files with 6 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue