Commit 4a539b36 authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Be a little more verbose when skipping provider registration

parent 07ad3c23
...@@ -97,10 +97,10 @@ void KSysGuardDaemon::registerProvider(SensorPlugin *provider) { ...@@ -97,10 +97,10 @@ void KSysGuardDaemon::registerProvider(SensorPlugin *provider) {
return plugin->providerName() == provider->providerName(); return plugin->providerName() == provider->providerName();
}); });
if (itr != m_providers.cend()) { if (itr != m_providers.cend()) {
qWarning() << "Skipping" << provider->providerName() << "as it is already registered";
return; return;
} }
m_providers.append(provider); m_providers.append(provider);
const auto containers = provider->containers(); const auto containers = provider->containers();
for (auto container : containers) { for (auto container : containers) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment