fix: log prefix display not completed

This commit is contained in:
Senis John 2022-12-04 08:43:10 +08:00
parent 608764a8a0
commit 212f0ff135
No known key found for this signature in database
GPG Key ID: 845E9E4727C3E1A4
3 changed files with 4 additions and 7 deletions

1
.gitignore vendored
View File

@ -15,3 +15,4 @@ main/config.yml
.idea/* .idea/*
.DS_Store .DS_Store
*.bak *.bak
go.work*

View File

@ -2,8 +2,6 @@ package limiter
import "github.com/xtls/xray-core/common/errors" import "github.com/xtls/xray-core/common/errors"
type errPathObjHolder struct{}
func newError(values ...interface{}) *errors.Error { func newError(values ...interface{}) *errors.Error {
return errors.New(values...).WithPathObj(errPathObjHolder{}) return errors.New(values...)
} }

View File

@ -2,8 +2,6 @@ package rule
import "github.com/xtls/xray-core/common/errors" import "github.com/xtls/xray-core/common/errors"
type errPathObjHolder struct{}
func newError(values ...interface{}) *errors.Error { func newError(values ...interface{}) *errors.Error {
return errors.New(values...).WithPathObj(errPathObjHolder{}) return errors.New(values...)
} }