Skip to content

Commit

Permalink
CBG-1494 - Active sub protocol logged on connection upgrade to BLIP (#…
Browse files Browse the repository at this point in the history
…5056)

Co-authored-by: Ben Brooks <ben.brooks@couchbase.com>
  • Loading branch information
IsaacLambat and bbrks committed Jun 22, 2021
1 parent 115a3aa commit 3495da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest/blip_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (h *handler) handleBLIPSync() error {
server := blipContext.WebSocketServer()
defaultHandler := server.Handler
server.Handler = func(conn *websocket.Conn) {
h.logStatus(http.StatusSwitchingProtocols, fmt.Sprintf("[%s] Upgraded to BLIP+WebSocket protocol%s", blipContext.ID, h.formattedEffectiveUserName()))
h.logStatus(http.StatusSwitchingProtocols, fmt.Sprintf("[%s] Upgraded to WebSocket protocol %s+%s%s", blipContext.ID, blip.WebSocketSubProtocolPrefix, blipContext.ActiveSubprotocol(), h.formattedEffectiveUserName()))
defer func() {
_ = conn.Close() // in case it wasn't closed already
base.InfofCtx(h.db.Ctx, base.KeyHTTP, "%s: --> BLIP+WebSocket connection closed", h.formatSerialNumber())
Expand Down

0 comments on commit 3495da3

Please sign in to comment.