1
0
Forkuj 0
kopia lustrzana https://github.com/XTLS/Xray-core.git zsynchronizowano 2025-07-05 09:34:14 +00:00
* 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:
yuhan6665 2024-06-29 14:32:57 -04:00 zatwierdzone przez GitHub
rodzic 8320732743
commit 079d0bd8a9
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
291 zmienionych plików z 1837 dodań i 2368 usunięć

Wyświetl plik

@ -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{})
}

Wyświetl plik

@ -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 {