kopia lustrzana
https://github.com/XTLS/Xray-core.git
zsynchronizowano 2025-07-05 09:34:14 +00:00
Refactor log (#3446)
* Refactor log * Add new log methods * Fix logger test * Change all logging code * Clean up pathObj * Rebase to latest main * Remove invoking method name after the dot
Ten commit jest zawarty w:
rodzic
8320732743
commit
079d0bd8a9
291 zmienionych plików z 1837 dodań i 2368 usunięć
|
@ -1,9 +0,0 @@
|
|||
package http
|
||||
|
||||
import "github.com/xtls/xray-core/common/errors"
|
||||
|
||||
type errPathObjHolder struct{}
|
||||
|
||||
func newError(values ...interface{}) *errors.Error {
|
||||
return errors.New(values...).WithPathObj(errPathObjHolder{})
|
||||
}
|
|
@ -14,6 +14,7 @@ import (
|
|||
|
||||
"github.com/xtls/xray-core/common"
|
||||
"github.com/xtls/xray-core/common/buf"
|
||||
"github.com/xtls/xray-core/common/errors"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -28,9 +29,9 @@ const (
|
|||
)
|
||||
|
||||
var (
|
||||
ErrHeaderToLong = newError("Header too long.")
|
||||
ErrHeaderToLong = errors.New("Header too long.")
|
||||
|
||||
ErrHeaderMisMatch = newError("Header Mismatch.")
|
||||
ErrHeaderMisMatch = errors.New("Header Mismatch.")
|
||||
)
|
||||
|
||||
type Reader interface {
|
||||
|
|
Ładowanie…
Dodaj tabelę
Add a link
Odniesienie w nowym zgłoszeniu