From 48237435b2a38746ef668953d10725fd92b414bd Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 24 Mar 2020 08:37:36 -0400 Subject: [PATCH] klippy: Log shutdown state in invoke_shutdown() Signed-off-by: Kevin O'Connor --- klippy/klippy.py | 1 + 1 file changed, 1 insertion(+) 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", []):