Commit 6e4a5a4e authored by Bryan Berthou's avatar Bryan Berthou
Browse files

refs#16

In ElementaryUtils (trunk) :
- Correct what() implementation.
parent a68c0796
......@@ -10,6 +10,8 @@ CustomException::CustomException(const std::string &className,
std::runtime_error(m_errorMsg), m_className(className), m_funcName(
funcName), m_errorMsg(errorMsg), m_finalExceptionMsg(
StringUtils::EMPTY) {
m_finalExceptionMsg = Formatter() << "(" << m_className << "::"
<< m_funcName << ") " << m_errorMsg;
}
CustomException::~CustomException() throw () {
......@@ -35,8 +37,6 @@ CustomException& CustomException::operator =(
}
const char* CustomException::what() const throw () {
m_finalExceptionMsg = Formatter() << "(" << m_className << "::"
<< m_funcName << ") " << m_errorMsg;
return m_finalExceptionMsg.c_str();
}
......
......@@ -146,6 +146,8 @@ void LoggerManager::parseConfigurationFile(const std::string &filePath) {
void LoggerManager::close() {
sf::Lock lock(m_mutex); // mutex.lock()
debug("LoggerManager", __func__, "Closed");
m_active = false;
} // mutex.unlock()
......@@ -169,9 +171,6 @@ void LoggerManager::update() {
Formatter() << "Cannot open log file = " << m_outputFilePath
<< "\n" << "LoggerManager terminated !");
}
std::cout << "[LoggerManager] terminated ..." << std::endl;
}
bool LoggerManager::isLoggable(LoggerMessage loggerMessage) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment