mirror of
https://github.com/netbirdio/ice.git
synced 2026-05-22 17:10:58 -07:00
Minor fix: incorrect log format in TCPMux
%w isn't a correct formatting string for error types.
This commit is contained in:
@@ -17,6 +17,7 @@ Chao Yuan <yuanchao0310@163.com>
|
||||
cnderrauber <zengjie9004@gmail.com>
|
||||
David Hamilton <davidhamiltron@gmail.com>
|
||||
David Zhao <david@davidzhao.com>
|
||||
David Zhao <dz@livekit.io>
|
||||
Henry <cryptix@riseup.net>
|
||||
hexiang <hexiang.zhang@chukong-inc.com>
|
||||
hn8 <10730886+hn8@users.noreply.github.com>
|
||||
|
||||
+2
-2
@@ -158,7 +158,7 @@ func (t *tcpPacketConn) startReading(conn net.Conn) {
|
||||
n, err := readStreamingPacket(conn, buf)
|
||||
// t.params.Logger.Infof("readStreamingPacket read %d bytes", n)
|
||||
if err != nil {
|
||||
t.params.Logger.Infof("%w: %s", errReadingStreamingPacket, err)
|
||||
t.params.Logger.Infof("%v: %s", errReadingStreamingPacket, err)
|
||||
t.handleRecv(streamingPacket{nil, conn.RemoteAddr(), err})
|
||||
t.removeConn(conn)
|
||||
return
|
||||
@@ -249,7 +249,7 @@ func (t *tcpPacketConn) WriteTo(buf []byte, raddr net.Addr) (n int, err error) {
|
||||
func (t *tcpPacketConn) closeAndLogError(closer io.Closer) {
|
||||
err := closer.Close()
|
||||
if err != nil {
|
||||
t.params.Logger.Warnf("%w: %s", errClosingConnection, err)
|
||||
t.params.Logger.Warnf("%v: %s", errClosingConnection, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user