From 78c19934313a206c29a41cb104524163fb535e5b Mon Sep 17 00:00:00 2001 From: kslr Date: Fri, 2 Apr 2021 22:24:14 +0800 Subject: [PATCH] fix logs prefix matching order --- common/errors/errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/errors/errors.go b/common/errors/errors.go index 82da2fc49..00ea45408 100644 --- a/common/errors/errors.go +++ b/common/errors/errors.go @@ -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 }