From aa61e13caba015fc7d618cb6b0f321cc6df9ca05 Mon Sep 17 00:00:00 2001 From: Bea <103050835+Beadko@users.noreply.github.com> Date: Fri, 7 Jul 2023 06:58:05 +0700 Subject: [PATCH] Okx: Log auth websocket connection errors (#1257) --- exchanges/okx/okx_websocket.go | 1 + 1 file changed, 1 insertion(+) diff --git a/exchanges/okx/okx_websocket.go b/exchanges/okx/okx_websocket.go index 3ce43cd1..5f5fece5 100644 --- a/exchanges/okx/okx_websocket.go +++ b/exchanges/okx/okx_websocket.go @@ -245,6 +245,7 @@ func (ok *Okx) WsConnect() error { authDialer.WriteBufferSize = 8192 err = ok.WsAuth(context.TODO(), &authDialer) if err != nil { + log.Errorf(log.ExchangeSys, "Error connecting auth socket: %s\n", err.Error()) ok.Websocket.SetCanUseAuthenticatedEndpoints(false) } }