mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-10-26 00:36:08 +02:00
webhooks: Move shutdown debugging to "klippy:analyze_shutdown" event
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -136,7 +136,7 @@ class ServerSocket:
|
||||
printer.register_event_handler(
|
||||
'klippy:disconnect', self._handle_disconnect)
|
||||
printer.register_event_handler(
|
||||
"klippy:shutdown", self._handle_shutdown)
|
||||
"klippy:analyze_shutdown", self._handle_analyze_shutdown)
|
||||
|
||||
def _handle_accept(self, eventtime):
|
||||
try:
|
||||
@@ -157,7 +157,7 @@ class ServerSocket:
|
||||
except socket.error:
|
||||
pass
|
||||
|
||||
def _handle_shutdown(self):
|
||||
def _handle_analyze_shutdown(self, msg, details):
|
||||
for client in self.clients.values():
|
||||
client.dump_request_log()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user