Skip to content

Commit

Permalink
Update debugger log message (#544)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrea Jiang <jianga@ethz.ch>
  • Loading branch information
andreaj00 and andreaj00 committed Feb 22, 2024
1 parent 5447c72 commit 1054bff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/debugger/websocketwriter.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ func (wsw *WSWriter) Close() error {
// The returned EventList contains the accepted events
func (wsw *WSWriter) Write(list *events.EventList, timestamp int64) (*events.EventList, error) {
for wsw.conn == nil {
wsw.logger.Log(logging.LevelInfo, "No connection")
time.Sleep(time.Millisecond * 100) // TODO: Why do we sleep here? Do we need it?
wsw.logger.Log(logging.LevelInfo, "Waiting interface connection to proceed")
time.Sleep(time.Millisecond * 100) // Sleep as backoff strategy, TODO: Discuss better strategy if needed
}
if list.Len() == 0 {
return list, nil
Expand Down

0 comments on commit 1054bff

Please sign in to comment.