From f3e1b193266a15a9d0c335ec78c919fcb358d690 Mon Sep 17 00:00:00 2001 From: Lynix Date: Tue, 18 Oct 2016 19:16:38 +0200 Subject: [PATCH] Core/FileLogger: Fix errors being written twice to the console with std replication (Fixes #103) --- src/Nazara/Core/FileLogger.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/Nazara/Core/FileLogger.cpp b/src/Nazara/Core/FileLogger.cpp index 78733850b..f08bd1b31 100644 --- a/src/Nazara/Core/FileLogger.cpp +++ b/src/Nazara/Core/FileLogger.cpp @@ -147,14 +147,6 @@ namespace Nz 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); m_outputFile.Flush(); }