aboutsummaryrefslogtreecommitdiff
path: root/ws_utils.go
diff options
context:
space:
mode:
Diffstat (limited to 'ws_utils.go')
-rw-r--r--ws_utils.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/ws_utils.go b/ws_utils.go
index adf4677..da51224 100644
--- a/ws_utils.go
+++ b/ws_utils.go
@@ -23,7 +23,7 @@ package main
import (
"context"
"fmt"
- "log"
+ "log/slog"
"sync/atomic"
"github.com/coder/websocket"
@@ -156,7 +156,11 @@ func propagate(msg string) {
if !ok {
panic("chanPool has non-string key")
}
- log.Println("WARNING: SendQ exceeded for " + userID)
+ slog.Warn(
+ "sendq",
+ "user", userID,
+ "msg", msg,
+ )
}
return true
})