Skip to content

Commit 63032cc

Browse files
committed
debug
1 parent 02bb44d commit 63032cc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dbos/conductor.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,7 @@ func (c *Conductor) run() {
206206
if websocket.IsUnexpectedCloseError(err, websocket.CloseGoingAway, websocket.CloseAbnormalClosure) {
207207
c.logger.Warn("Unexpected WebSocket close", "error", err)
208208
} else if netErr, ok := err.(net.Error); ok && netErr.Timeout() {
209-
// This is expected - read deadline timeout, connection is still healthy
210-
c.logger.Debug("Read deadline reached, connection healthy")
209+
c.logger.Debug("Read deadline reached", "error", err)
211210
} else {
212211
c.logger.Debug("Connection closed", "error", err)
213212
}
@@ -223,9 +222,11 @@ func (c *Conductor) run() {
223222
continue
224223
}
225224

225+
ht := time.Now()
226226
if err := c.handleMessage(message); err != nil {
227227
c.logger.Error("Failed to handle message", "error", err)
228228
}
229+
c.logger.Debug("Handled message", "latency_ms", time.Since(ht).Milliseconds())
229230
}
230231
}
231232

0 commit comments

Comments
 (0)