Core/FileLogger: Fix errors being written twice to the console with std replication (Fixes #103)
This commit is contained in:
parent
438d8e918c
commit
f3e1b19326
|
|
@ -147,14 +147,6 @@ namespace Nz
|
||||||
|
|
||||||
void FileLogger::WriteError(ErrorType type, const String& error, unsigned int line, const char* file, const char* function)
|
void FileLogger::WriteError(ErrorType type, const String& error, unsigned int line, const char* file, const char* function)
|
||||||
{
|
{
|
||||||
if (m_forceStdOutput || m_stdReplicationEnabled)
|
|
||||||
{
|
|
||||||
m_stdLogger.WriteError(type, error, line, file, function);
|
|
||||||
|
|
||||||
if (m_forceStdOutput)
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
AbstractLogger::WriteError(type, error, line, file, function);
|
AbstractLogger::WriteError(type, error, line, file, function);
|
||||||
m_outputFile.Flush();
|
m_outputFile.Flush();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue