mirror of
https://github.com/netbirdio/ice.git
synced 2026-05-22 17:10:58 -07:00
Change writeTo failed log level to info
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.
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user