1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-02 23:47:07 -05:00

fix logs prefix matching order

This commit is contained in:
kslr 2021-04-02 22:24:14 +08:00
parent e87e3d6b85
commit 78c1993431

View File

@ -38,8 +38,8 @@ func (err *Error) pkgPath() string {
return ""
}
path := reflect.TypeOf(err.pathObj).PkgPath()
path = strings.TrimPrefix(path, "github.com/v2fly/v2ray-core/v4")
path = strings.TrimPrefix(path, "github.com/v2fly/v2ray-core/v4/")
path = strings.TrimPrefix(path, "github.com/v2fly/v2ray-core/v4")
return path
}