Fixed tool logging an error when it had reached the map count limit
This commit is contained in:
parent
4d8b19a83f
commit
a8b2cb8f31
@ -48,10 +48,18 @@ public class JsonFileIntakeReader : IIntakeReader
|
||||
_totalMapDumpsCounter[fi.Data.Name] += 1;
|
||||
if (LoggerFactory.GetInstance().CanBeLogged(LogLevel.Debug))
|
||||
LoggerFactory.GetInstance().Log($"File {file} fully read, returning data", LogLevel.Debug);
|
||||
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Map dump limit reached, exit
|
||||
if (LoggerFactory.GetInstance().CanBeLogged(LogLevel.Debug))
|
||||
LoggerFactory.GetInstance().Log($"Ignoring file {file} as the file cap for map {fi.Data.Name} has been reached", LogLevel.Debug);
|
||||
LoggerFactory.GetInstance().Log($"Ignoring file {file} as the file cap for map {fi.Data.Id} has been reached", LogLevel.Debug);
|
||||
basicInfo = null;
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (LoggerFactory.GetInstance().CanBeLogged(LogLevel.Warning))
|
||||
|
Loading…
x
Reference in New Issue
Block a user