打开调试日志

master
smartwyy 6 months ago
parent 3dbceb35b9
commit cb55e15c52

@ -35,7 +35,7 @@ public class TcpServer<TH, TD, TE> : IDisposable where TH : IChannelHandler
public Action? ChannelInActiveAction { get; set; } public Action? ChannelInActiveAction { get; set; }
public TcpServer() public void InitBootstrap()
{ {
if (LogLevel != null) if (LogLevel != null)
@ -131,6 +131,7 @@ public class TcpServer<TH, TD, TE> : IDisposable where TH : IChannelHandler
{ {
_port = port; _port = port;
Log.Info(" Start Listen"); Log.Info(" Start Listen");
InitBootstrap();
Task<IChannel>? channel = bootstrap?.BindAsync(_port); Task<IChannel>? channel = bootstrap?.BindAsync(_port);
Log.Info($"netty success listen {_port}"); Log.Info($"netty success listen {_port}");
} }

Loading…
Cancel
Save