Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
f0cii committed Apr 26, 2020
1 parent b62bfeb commit 34607d1
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions ws.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ func (b *BitMEX) StartWS() {
}

if resp.Success {
log.Println(string(message))
if b.debugMode {
log.Println(string(message))
}
continue
}

Expand Down Expand Up @@ -303,10 +305,14 @@ func (b *BitMEX) StartWS() {
b.processWallet(&resp)
default:
if resp.Subscribe != "" {
log.Printf("Subscribe message Msg=%#v", resp)
if b.debugMode {
log.Printf("Subscribe message Msg=%#v", resp)
}
} else {
log.Printf("Unknown message Msg=%#v", resp)
log.Println("resp:", string(message))
if b.debugMode {
log.Printf("Unknown message Msg=%#v", resp)
log.Println("resp:", string(message))
}
}
}

Expand Down

0 comments on commit 34607d1

Please sign in to comment.