Remove serial.Bytes

This commit is contained in:
v2ray committed 2016-05-24 22:09:22 +02:00
1 parent fc63f0432c
commit ab39750ceb
12 files changed
+35 -68

No files matched your search

+3
View File
@@ -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))
}