mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-03-24 08:51:07 -04:00
Logger tweaks
Commit amended for code style and minor cleanup by Adam Honse <calcprogrammer1@gmail.com>
This commit is contained in:
@@ -3,9 +3,7 @@
|
||||
|
||||
void PluginManager::ScanAndLoadPlugins(bool dark_theme)
|
||||
{
|
||||
int plugin_section = LogSection("Plugins", LL_DEBUG);
|
||||
|
||||
LogAppend(plugin_section, LL_DEBUG, "Loading plugins");
|
||||
LOG_NOTICE("Loading plugins");
|
||||
|
||||
std::string OpenRGBConfigDir = ResourceManager::get()->GetConfigurationDirectory();
|
||||
|
||||
@@ -33,7 +31,7 @@ void PluginManager::ScanAndLoadPlugins(bool dark_theme)
|
||||
{
|
||||
const std::string filePath = pluginsDir.absoluteFilePath(QString().fromStdString(fileName)).toStdString();
|
||||
|
||||
LogAppend(plugin_section, LL_DEBUG, "Attempting to load: %s", filePath.c_str());
|
||||
LOG_VERBOSE("Attempting to load: %s", filePath.c_str());
|
||||
|
||||
QPluginLoader loader(pluginsDir.absoluteFilePath(QString().fromStdString(fileName)));
|
||||
|
||||
@@ -46,7 +44,7 @@ void PluginManager::ScanAndLoadPlugins(bool dark_theme)
|
||||
\*-----------------------------------------------------*/
|
||||
OpenRGBPlugin->info = OpenRGBPlugin->Initialize(dark_theme, ResourceManager::get());
|
||||
|
||||
LogAppend(plugin_section, LL_DEBUG, "Loaded plugin %s", OpenRGBPlugin->info.PluginName.c_str());
|
||||
LOG_VERBOSE("Loaded plugin %s", OpenRGBPlugin->info.PluginName.c_str());
|
||||
|
||||
PluginManager::ActivePlugins.push_back(OpenRGBPlugin);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user