From 5251e3ecb64e1bf9b714a365d90eb99105531f4b Mon Sep 17 00:00:00 2001 From: Eberhard Graether Date: Wed, 2 Jul 2014 14:50:15 +0200 Subject: [PATCH] test: Removed __FUNCTION__ part in PlainFileLogger logs because of platform differences --- bin/test/data/log/test_log.txt | 14 ++++++++------ src/lib/utility/logging/PlainFileLogger.cpp | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/bin/test/data/log/test_log.txt b/bin/test/data/log/test_log.txt index 257d6d46..6d3c3676 100644 --- a/bin/test/data/log/test_log.txt +++ b/bin/test/data/log/test_log.txt @@ -1,6 +1,8 @@ -Graph.cpp removeEdge() ERROR: Can't remove member edge, without removing the child node. -TextAccess.cpp checkIndexIntervalInRange() WARNING: Index 'firstLine' has to be lower or equal index 'lastLine', is 2 > 1 -TextAccess.cpp checkIndexInRange() WARNING: Tried to access index 9. Maximum index is 7 -TextAccess.cpp checkIndexInRange() WARNING: Tried to access index 9. Maximum index is 7 -TextAccess.cpp getLine() WARNING: Line numbers start with one, is 0 -TextAccess.cpp getLines() WARNING: Line numbers start with one, is 0 +Graph.cpp ERROR: Can't remove member edge, without removing the child node. +TextAccess.cpp WARNING: Index 'firstLine' has to be lower or equal index 'lastLine', is 2 > 1 +TextAccess.cpp WARNING: Tried to access index 9. Maximum index is 7 +TextAccess.cpp WARNING: Tried to access index 9. Maximum index is 7 +TextAccess.cpp WARNING: Line numbers start with one, is 0 +TextAccess.cpp WARNING: Line numbers start with one, is 0 +TokenLocationCollection.cpp ERROR: Can't create TokenLocation with wrong boundaries. +TokenLocationCollection.cpp ERROR: Can't create TokenLocation with wrong boundaries. diff --git a/src/lib/utility/logging/PlainFileLogger.cpp b/src/lib/utility/logging/PlainFileLogger.cpp index 452a5e41..e8ea645e 100644 --- a/src/lib/utility/logging/PlainFileLogger.cpp +++ b/src/lib/utility/logging/PlainFileLogger.cpp @@ -42,6 +42,6 @@ void PlainFileLogger::logError(const LogMessage& message) void PlainFileLogger::logMessage(const std::string& type, const LogMessage& message) { std::stringstream ss; - ss << message.getFileName() << " " << message.functionName << "() " << type << ": " << message.message << std::endl; + ss << message.getFileName() << " " << type << ": " << message.message << std::endl; logString(ss.str()); }