1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-06 01:05:35 -05:00

refactor log and error

This commit is contained in:
Darien Raymond
2017-04-06 21:13:17 +02:00
parent fc31f9b94c
commit 75f5cb9afb
33 changed files with 123 additions and 99 deletions

View File

@@ -4,6 +4,7 @@ import (
"net"
"v2ray.com/core/app/log"
"v2ray.com/core/common/errors"
"v2ray.com/core/common/predicate"
)
@@ -94,7 +95,7 @@ func IPAddress(ip []byte) Address {
}
return addr
default:
log.Error("Net: Invalid IP format: ", ip)
log.Trace(errors.New("Net: Invalid IP format: ", ip).AtError())
return nil
}
}