mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-08 07:26:48 +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
|
authDialer.WriteBufferSize = 8192
|
||||||
err = ok.WsAuth(context.TODO(), &authDialer)
|
err = ok.WsAuth(context.TODO(), &authDialer)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
log.Errorf(log.ExchangeSys, "Error connecting auth socket: %s\n", err.Error())
|
||||||
ok.Websocket.SetCanUseAuthenticatedEndpoints(false)
|
ok.Websocket.SetCanUseAuthenticatedEndpoints(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user