Less logging

This commit is contained in:
ftc
2025-07-10 22:58:04 +03:00
parent fdc929143b
commit 68c1010ff1
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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>