diff --git a/src/log.cpp b/src/log.cpp index 74bdf17..f0a0ce9 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -63,8 +63,6 @@ std::string Log::s_fileName = std::string(); LogLevel Log::s_logLevel = LogLevel::Error; LogMask Log::s_logMask = LogMask::None; -std::mutex Log::m_mutex = std::mutex(); - void Log::init( const std::string& context, const std::string& logFile, LogLevel logDepth ) { s_logLevel = logDepth; @@ -129,8 +127,6 @@ std::string Log::fileinfoMessage( const char* file, int line, const std::string& void Log::log( const std::string &category, const std::string &message, LogLevel level ) { - std::lock_guard lock(m_mutex); - std::string logCategory = category; std::string logMessage = message; if( logMessage.empty() ) diff --git a/src/log.h b/src/log.h index 897fe55..16b2b7e 100644 --- a/src/log.h +++ b/src/log.h @@ -317,9 +317,6 @@ private: //! The mask static LogMask s_logMask; - - //! Mutex to keep the logger thread-safe - static std::mutex m_mutex; }; } // End namespace log