Skip to content

Commit

Permalink
remove debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
adnaan committed Jul 5, 2023
1 parent eb51d6c commit ffd50d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ loop:
}
break loop
}
start := time.Now()
// start := time.Now()

var event Event
err = json.NewDecoder(bytes.NewReader(message)).Decode(&event)
Expand All @@ -186,7 +186,7 @@ loop:
continue
}

klog.Errorf("[onWebsocket] received event: %+v took %v\n ", event, time.Since(start))
// klog.Errorf("[onWebsocket] received event: %+v took %v\n ", event, time.Since(start))

if event.ID == "heartbeat" && conn != nil {
// err := conn.WriteMessage(websocket.TextMessage, []byte(`{"event_id":"heartbeat_ack"}`))
Expand All @@ -197,7 +197,7 @@ loop:
go func() {
send <- []byte(`{"event_id":"heartbeat_ack"}`)
}()
klog.Errorf("[onWebsocket] wrote heartbeat: %+v took %v\n ", event, time.Since(start))
// klog.Errorf("[onWebsocket] wrote heartbeat: %+v took %v\n ", event, time.Since(start))
continue
}

Expand Down

0 comments on commit ffd50d5

Please sign in to comment.