summaryrefslogtreecommitdiffstats
path: root/src/Daemon/PluginManager.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-09-21 16:20:32 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-09-21 16:20:32 +0200
commit1e20b49cebecb937b6911af45f9fb34a2772b229 (patch)
treeaa9708fd61312230a53b75df3ecc46c9cc2e111e /src/Daemon/PluginManager.cpp
parent4cfbde6c98852447be0c2249c302c3b44334acc0 (diff)
downloadabrt-1e20b49cebecb937b6911af45f9fb34a2772b229.tar.gz
abrt-1e20b49cebecb937b6911af45f9fb34a2772b229.tar.xz
abrt-1e20b49cebecb937b6911af45f9fb34a2772b229.zip
reduce verbosity a bit
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Daemon/PluginManager.cpp')
-rw-r--r--src/Daemon/PluginManager.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/Daemon/PluginManager.cpp b/src/Daemon/PluginManager.cpp
index a36d5a85..73d4dff0 100644
--- a/src/Daemon/PluginManager.cpp
+++ b/src/Daemon/PluginManager.cpp
@@ -216,9 +216,11 @@ void CPluginManager::RegisterPlugin(const std::string& pName)
}
catch (CABRTException& e)
{
- warn_client("Can not initialize plugin " + pName + "("
- + std::string(plugin_type_str[abrt_plugin->second->GetType()])
- + "): " + e.what());
+ log("Can't initialize plugin %s(%s): %s",
+ pName.c_str(),
+ plugin_type_str[abrt_plugin->second->GetType()],
+ e.what().c_str()
+ );
UnLoadPlugin(pName);
return;
}
@@ -238,7 +240,7 @@ void CPluginManager::RegisterPluginDBUS(const std::string& pName,
RegisterPlugin(pName);
} else
{
- log("user %s not authorized, returned %d", pDBUSSender, polkit_result);
+ log("User %s not authorized, returned %d", pDBUSSender, polkit_result);
}
}
@@ -398,17 +400,17 @@ void CPluginManager::SetPluginSettings(const std::string& pName,
{
if (mkdir(confDir.c_str(), 0700) == -1)
{
- perror_msg("can't create dir '%s'", confDir.c_str());
+ perror_msg("Can't create dir '%s'", confDir.c_str());
return;
}
if (chmod(confDir.c_str(), 0700) == -1)
{
- perror_msg("can't change mod of dir '%s'", confDir.c_str());
+ perror_msg("Can't change mod of dir '%s'", confDir.c_str());
return;
}
if (chown(confDir.c_str(), uid, gid) == -1)
{
- perror_msg("can't change '%s' ownership to %u:%u", confPath.c_str(), (int)uid, (int)gid);
+ perror_msg("Can't change '%s' ownership to %u:%u", confPath.c_str(), (int)uid, (int)gid);
return;
}
@@ -422,7 +424,7 @@ void CPluginManager::SetPluginSettings(const std::string& pName,
SavePluginSettings(confPath, pSettings);
if (chown(confPath.c_str(), uid, gid) == -1)
{
- perror_msg("can't change '%s' ownership to %u:%u", confPath.c_str(), (int)uid, (int)gid);
+ perror_msg("Can't change '%s' ownership to %u:%u", confPath.c_str(), (int)uid, (int)gid);
return;
}
}