mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-19 23:03:08 +00:00
Remove serial.Bytes
This commit is contained in:
1 parent
fc63f0432c
commit
ab39750ceb
12 files changed
+35
-68
No files matched your search
@@ -5,6 +5,7 @@ import (
|
||||
|
||||
"github.com/v2ray/v2ray-core/common"
|
||||
"github.com/v2ray/v2ray-core/common/alloc"
|
||||
"github.com/v2ray/v2ray-core/common/serial"
|
||||
)
|
||||
|
||||
type LogEntry interface {
|
||||
@@ -40,6 +41,8 @@ func (this *ErrorLog) String() string {
|
||||
b.AppendString(typedVal.String())
|
||||
case error:
|
||||
b.AppendString(typedVal.Error())
|
||||
case []byte:
|
||||
b.AppendString(serial.BytesToHexString(typedVal))
|
||||
default:
|
||||
b.AppendString(fmt.Sprint(value))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user