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:
@ -133,7 +133,7 @@ void CMeasurePlugin::ReadConfig(CConfigParser& parser, const WCHAR* section)
|
||||
{
|
||||
if (CRainmeter::GetDebug())
|
||||
{
|
||||
DebugLog(L"Plugin: Unable to load plugin: \"%s\", ErrorCode=%u", m_PluginName.c_str(), err);
|
||||
LogWithArgs(LOG_ERROR, L"Plugin: Unable to load plugin: \"%s\", ErrorCode=%u", m_PluginName.c_str(), err);
|
||||
}
|
||||
|
||||
// Try to load from Rainmeter's folder
|
||||
@ -149,7 +149,7 @@ void CMeasurePlugin::ReadConfig(CConfigParser& parser, const WCHAR* section)
|
||||
{
|
||||
if (CRainmeter::GetDebug())
|
||||
{
|
||||
DebugLog(L"Plugin: Unable to load plugin: \"%s\", ErrorCode=%u", pluginName.c_str(), err);
|
||||
LogWithArgs(LOG_ERROR, L"Plugin: Unable to load plugin: \"%s\", ErrorCode=%u", pluginName.c_str(), err);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -245,6 +245,6 @@ void CMeasurePlugin::ExecuteBang(const WCHAR* args)
|
||||
}
|
||||
else
|
||||
{
|
||||
DebugLog(L"[%s] doesn't support bangs.", m_Name.c_str());
|
||||
LogWithArgs(LOG_WARNING, L"[%s] doesn't support bangs.", m_Name.c_str());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user