mirror of https://github.com/Desuuuu/klipper.git
klippy: Log shutdown state in invoke_shutdown()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
849cc075dc
commit
48237435b2
|
@ -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", []):
|
||||
|
|
Loading…
Reference in New Issue