Skip to content

Commit

Permalink
Change writeTo failed log level to info
Browse files Browse the repository at this point in the history
In #252 decide to ignore the writeTo failed error with a log,
application can choose callback and query state for the connection
state. But if application keep sending packet during try icerestart
to recover from ICEFailed, the warn log is annoying since the error
is not critical and no need to process. So change it to info.
  • Loading branch information
cnderrauber committed Oct 19, 2022
1 parent f7d4014 commit 8c1adf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion candidate_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ func (c *candidateBase) close() error {
func (c *candidateBase) writeTo(raw []byte, dst Candidate) (int, error) {
n, err := c.conn.WriteTo(raw, dst.addr())
if err != nil {
c.agent().log.Warnf("%s: %v", errSendPacket, err)
c.agent().log.Infof("%s: %v", errSendPacket, err)
return n, nil
}
c.seen(true)
Expand Down

0 comments on commit 8c1adf1

Please sign in to comment.