mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-04-18 19:49:13 -04:00
merge log into common log
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
"context"
|
||||
gotls "crypto/tls"
|
||||
|
||||
"v2ray.com/core/app/log"
|
||||
"v2ray.com/core/common"
|
||||
"v2ray.com/core/common/net"
|
||||
"v2ray.com/core/common/retry"
|
||||
@@ -28,7 +27,7 @@ func ListenTCP(ctx context.Context, address net.Address, port net.Port, addConn
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
log.Trace(newError("listening TCP on ", address, ":", port))
|
||||
newError("listening TCP on ", address, ":", port).WriteToLog()
|
||||
networkSettings := internet.TransportSettingsFromContext(ctx)
|
||||
tcpSettings := networkSettings.(*Config)
|
||||
|
||||
@@ -74,7 +73,7 @@ func (v *TCPListener) KeepAccepting(ctx context.Context) {
|
||||
return nil
|
||||
})
|
||||
if err != nil {
|
||||
log.Trace(newError("failed to accepted raw connections").Base(err).AtWarning())
|
||||
newError("failed to accepted raw connections").Base(err).AtWarning().WriteToLog()
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user