From 3495da3971048f9871c9d15286541b2aa845c133 Mon Sep 17 00:00:00 2001 From: Isaac Lambat Date: Tue, 22 Jun 2021 12:20:06 +0100 Subject: [PATCH] CBG-1494 - Active sub protocol logged on connection upgrade to BLIP (#5056) Co-authored-by: Ben Brooks --- rest/blip_sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest/blip_sync.go b/rest/blip_sync.go index 3956349e5a..2323d234f9 100644 --- a/rest/blip_sync.go +++ b/rest/blip_sync.go @@ -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())