Skip to content

Commit

Permalink
Revert "remove error message"
Browse files Browse the repository at this point in the history
This reverts commit ea6febb.
  • Loading branch information
mikhaillav committed Nov 7, 2023
1 parent 1ecbc68 commit a89d9c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ func (listener *Listener) listen() {

// Technically we should not re-use the same byte slice after its ownership has been taken by the
// buffer, but we can do this anyway because we copy the data later.
listener.handle(buf, addr)
if err := listener.handle(buf, addr); err != nil {
listener.log.Printf("listener: error handling packet (addr = %v): %v\n", addr, err)
}
buf.Reset()
}
}
Expand Down

0 comments on commit a89d9c4

Please sign in to comment.