From b0c4f83424e54845b9e861203b68e06ef69ae037 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Sat, 17 Aug 2013 11:16:01 +0300 Subject: [PATCH] Minor tweaks --- Library/Logger.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Logger.cpp b/Library/Logger.cpp index a19e48fe..4429f50a 100644 --- a/Library/Logger.cpp +++ b/Library/Logger.cpp @@ -136,7 +136,7 @@ void Logger::WriteToLogFile(Entry& entry) (entry.level == Level::Warning) ? L"WARN" : (entry.level == Level::Notice) ? L"NOTE" : L"DBUG"; - + std::wstring message = levelSz; message += L" ("; message.append(entry.timestamp); @@ -145,9 +145,9 @@ void Logger::WriteToLogFile(Entry& entry) message += L": "; message += entry.message; message += L'\n'; - + #ifdef _DEBUG - _RPT0(_CRT_WARN, StringUtil::Narrow(message).c_str()); + _RPTW0(_CRT_WARN, message.c_str()); if (!m_LogToFile) return; #endif