Okx: Log auth websocket connection errors (#1257)

This commit is contained in:
Bea
2023-07-07 06:58:05 +07:00
committed by GitHub
parent 489bbb1676
commit aa61e13cab

View File

@@ -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)
}
}