mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-02-28 15:14:35 -07:00
webhooks: Move shutdown debugging to "klippy:analyze_shutdown" event
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
6f5ab8d0e8
commit
54d2716bdd
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue