From d20299b87a32404b56ea824e2764236533eba17d Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Tue, 14 Feb 2012 18:05:51 +0000 Subject: [PATCH] Fixed mistake. --- Library/Litestep.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Library/Litestep.cpp b/Library/Litestep.cpp index 360613dc..7b6cdb6b 100644 --- a/Library/Litestep.cpp +++ b/Library/Litestep.cpp @@ -332,8 +332,11 @@ void LogInternal(int nLevel, ULONGLONG elapsed, LPCTSTR pszMessage) message += L") "; message += pszMessage; message += L'\n'; - + +#ifdef _DEBUG _RPT0(_CRT_WARN, ConvertToAscii(message.c_str()).c_str()); + if (!Rainmeter->GetLogging()) return; +#endif const WCHAR* logFile = Rainmeter->GetLogFile().c_str(); if (_waccess(logFile, 0) == -1)