Less logging
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ namespace Barsik
|
||||
var config = new NLog.Config.LoggingConfiguration();
|
||||
|
||||
var logConsole = new NLog.Targets.ConsoleTarget("logconsole");
|
||||
config.AddRuleForAllLevels(logConsole);
|
||||
config.AddRuleForOneLevel(LogLevel.Info, logConsole);
|
||||
LogManager.Configuration = config;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ namespace Barsik
|
||||
while (true)
|
||||
{
|
||||
var client = listener.AcceptTcpClient();
|
||||
logger.Info("Accepted connection from " + client.Client.RemoteEndPoint);
|
||||
logger.Debug("Accepted connection from " + client.Client.RemoteEndPoint);
|
||||
var worker = new ModbusServerWorker(registers, client);
|
||||
Thread clientThread = new Thread(new ThreadStart(worker.Run));
|
||||
clientThread.Start();
|
||||
|
||||
@@ -3,4 +3,8 @@
|
||||
https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<History>True|2025-07-10T19:55:50.7510832Z||;True|2025-07-10T22:55:09.2420025+03:00||;</History>
|
||||
<LastFailureDetails />
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user