Logging Bug

- added data check when configuring logging.
- removed workshop interval expiry options.
- removed RCON password from logs.
This commit is contained in:
Brett Hewitson 2022-07-25 09:39:30 +10:00
parent 99cdcd6375
commit 96ba2c3474
23 changed files with 103 additions and 101 deletions

View file

@ -422,7 +422,7 @@ namespace ServerManagerTool.Lib
}
_maxCommandRetries = 10;
_errorLogger?.Error($"Failed to connect to Rcon at {_rconParameters.RconHostIP}:{_rconParameters.RconPort} with {_rconParameters.RconPassword}. {lastException.Message}");
_errorLogger?.Error($"Failed to connect to Rcon at {_rconParameters.RconHostIP}:{_rconParameters.RconPort}. {lastException.Message}");
throw new Exception($"Command failed to send after {_maxCommandRetries} attempts. Last exception: {lastException.Message}", lastException);
}
#endregion