mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
Okx: Log auth websocket connection errors (#1257)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user