aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-03-24 08:37:36 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-03-24 08:37:36 -0400
commit48237435b2a38746ef668953d10725fd92b414bd (patch)
treee3f1cbb20e0dcffb0edeb4622146d293a4d9bd2d /klippy
parent849cc075dce28e6fc832d4e9de6bd57cf7b7f95c (diff)
downloadkutter-48237435b2a38746ef668953d10725fd92b414bd.tar.gz
kutter-48237435b2a38746ef668953d10725fd92b414bd.tar.xz
kutter-48237435b2a38746ef668953d10725fd92b414bd.zip
klippy: Log shutdown state in invoke_shutdown()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r--klippy/klippy.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/klippy/klippy.py b/klippy/klippy.py
index 47eff8c2..4bfc2f63 100644
--- a/klippy/klippy.py
+++ b/klippy/klippy.py
@@ -190,6 +190,7 @@ class Printer:
def invoke_shutdown(self, msg):
if self.is_shutdown:
return
+ logging.error("Transition to shutdown state: %s", msg)
self.is_shutdown = True
self._set_state("%s%s" % (msg, message_shutdown))
for cb in self.event_handlers.get("klippy:shutdown", []):