mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
- Replace DebugLog() with LogWithArgs(int nLevel, const WCHAR* format, ... ), so that variable strings can be logged but the log level can be set to those other than LOG_DEBUG
- Note: DebugLog() is still in the code as I was not sure whether it is required to maintain Litestep interoperability - Replaced instances of LOG_DEBUG where other log levels would be more appropriate
This commit is contained in:
@ -161,8 +161,8 @@ void CMeterString::Initialize()
|
||||
// It couldn't find the font family: Log it.
|
||||
if(Ok != status)
|
||||
{
|
||||
std::wstring error = L"Error: Couldn't load font family: " + m_FontFace;
|
||||
LSLog(LOG_DEBUG, APPNAME, error.c_str());
|
||||
std::wstring error = L"Couldn't load font family: " + m_FontFace;
|
||||
LSLog(LOG_ERROR, APPNAME, error.c_str());
|
||||
|
||||
delete m_FontFamily;
|
||||
m_FontFamily = NULL;
|
||||
@ -725,24 +725,22 @@ void CMeterString::EnumerateInstalledFontFamilies()
|
||||
}
|
||||
fonts += L", ";
|
||||
}
|
||||
LSLog(LOG_DEBUG, APPNAME, fonts.c_str());
|
||||
LSLog(LOG_NOTICE, APPNAME, fonts.c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
LSLog(LOG_DEBUG, APPNAME, L"Failed to enumerate installed font families: GetFamilies() failed.");
|
||||
LSLog(LOG_ERROR, APPNAME, L"Failed to enumerate installed font families: GetFamilies() failed.");
|
||||
}
|
||||
|
||||
delete [] fontFamilies;
|
||||
}
|
||||
else
|
||||
{
|
||||
LSLog(LOG_DEBUG, APPNAME, L"There are no installed font families!");
|
||||
LSLog(LOG_WARNING, APPNAME, L"There are no installed font families!");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
LSLog(LOG_DEBUG, APPNAME, L"Failed to enumerate installed font families: InstalledFontCollection() failed.");
|
||||
LSLog(LOG_ERROR, APPNAME, L"Failed to enumerate installed font families: InstalledFontCollection() failed.");
|
||||
}
|
||||
}
|
||||
|
||||
// EOF
|
||||
}
|
Reference in New Issue
Block a user