mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-19 23:03:08 +00:00
lazy evaluation of log fields
This commit is contained in:
1 parent
8f20933457
commit
eec0bb4db4
25 files changed
+124
-117
No files matched your search
@@ -28,7 +28,7 @@ func (this *InboundDetourHandler) Initialize() error {
|
||||
ichConfig := this.config.Settings
|
||||
ich, err := proxyrepo.CreateInboundConnectionHandler(this.config.Protocol, this.space, ichConfig)
|
||||
if err != nil {
|
||||
log.Error("Failed to create inbound connection handler: %v", err)
|
||||
log.Error("Failed to create inbound connection handler: ", err)
|
||||
return err
|
||||
}
|
||||
this.ich = append(this.ich, &InboundConnectionHandlerWithPort{
|
||||
@@ -51,7 +51,7 @@ func (this *InboundDetourHandler) Start() error {
|
||||
err := retry.Timed(100 /* times */, 100 /* ms */).On(func() error {
|
||||
err := ich.handler.Listen(ich.port)
|
||||
if err != nil {
|
||||
log.Error("Failed to start inbound detour on port %d: %v", ich.port, err)
|
||||
log.Error("Failed to start inbound detour on port ", ich.port, ": ", err)
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user