feat(log): improve SignalR log

This commit is contained in:
MingxuanGame
2025-08-17 15:55:36 +00:00
parent eaa6d4d92b
commit 33cf04b1c8
5 changed files with 62 additions and 2 deletions

View File

@@ -273,6 +273,10 @@ class Hub[TState: UserState]:
result = await self.invoke_method(client, packet.target, args)
except InvokeException as e:
error = e.message
logger.debug(
f"Client {client.connection_token} call {packet.target}"
f" failed: {error}"
)
except Exception as e:
logger.exception(
f"Error invoking method {packet.target} for "