Skip to content

Commit

Permalink
refactor: nicer WebSocket debugging logs
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 committed Dec 15, 2024
1 parent 2c61f54 commit 164f535
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/SwapChecker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ class BoltzWebSocket {
return;
}

log.debug("WebSocket message", data);
log.debug(
`WebSocket message: ${JSON.stringify(data, null, 2)}`,
);

if (data.event === "update" && data.channel === "swap.update") {
const swapUpdates = data.args as SwapStatus[];
Expand Down

0 comments on commit 164f535

Please sign in to comment.