1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

Fix small issue with log reading

This commit is contained in:
RaidMax
2018-12-19 19:24:31 -06:00
parent 94ef816b19
commit e31c36a1d7
5 changed files with 24 additions and 20 deletions

View File

@ -803,12 +803,10 @@ namespace IW4MAdmin
if (!File.Exists(logPath))
{
Logger.WriteError($"{logPath} {loc["SERVER_ERROR_DNE"]}");
#if !DEBUG
throw new ServerException($"{loc["SERVER_ERROR_LOG"]} {logPath}");
#else
LogEvent = new GameLogEventDetection(this, logPath, logfile.Value);
#endif
}
LogEvent = new GameLogEventDetection(this, logPath, logfile.Value);
}
Logger.WriteInfo($"Log file is {logPath}");