webhooks: Move shutdown debugging to "klippy:analyze_shutdown" event

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2025-10-08 14:17:11 -04:00
parent 6f5ab8d0e8
commit 54d2716bdd

View File

@@ -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()