Procházet zdrojové kódy

Adjust TCP inbound logs

RPRX před 5 roky
rodič
revize
9046bea466
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      transport/internet/tcp/hub.go

+ 2 - 2
transport/internet/tcp/hub.go

@@ -33,9 +33,9 @@ func ListenTCP(ctx context.Context, address net.Address, port net.Port, streamSe
 		Port: int(port),
 	}, streamSettings.SocketSettings)
 	if err != nil {
-		return nil, err
+		return nil, newError("failed to listen TCP on", address, ":", port).Base(err)
 	}
-	newError("listening TCP on ", address, ":", port).WriteToLog(session.ExportIDToError(ctx))
+	newError("Listening TCP on ", address, ":", port).WriteToLog(session.ExportIDToError(ctx))
 
 	tcpSettings := streamSettings.ProtocolSettings.(*Config)
 	var l *Listener