diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-21 16:20:32 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-21 16:20:32 +0200 |
commit | 1e20b49cebecb937b6911af45f9fb34a2772b229 (patch) | |
tree | aa9708fd61312230a53b75df3ecc46c9cc2e111e | |
parent | 4cfbde6c98852447be0c2249c302c3b44334acc0 (diff) | |
download | abrt-1e20b49cebecb937b6911af45f9fb34a2772b229.tar.gz abrt-1e20b49cebecb937b6911af45f9fb34a2772b229.tar.xz abrt-1e20b49cebecb937b6911af45f9fb34a2772b229.zip |
reduce verbosity a bit
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | lib/Plugins/KerneloopsScanner.cpp | 4 | ||||
-rw-r--r-- | lib/Utils/DebugDump.cpp | 4 | ||||
-rw-r--r-- | src/Daemon/PluginManager.cpp | 18 |
3 files changed, 14 insertions, 12 deletions
diff --git a/lib/Plugins/KerneloopsScanner.cpp b/lib/Plugins/KerneloopsScanner.cpp index e1e3228..60fa92e 100644 --- a/lib/Plugins/KerneloopsScanner.cpp +++ b/lib/Plugins/KerneloopsScanner.cpp @@ -109,7 +109,7 @@ void CKerneloopsScanner::SaveOopsToDebugDump() int CKerneloopsScanner::ScanDmesg() { - log("Scanning dmesg..."); + VERB1 log("Scanning dmesg..."); int cnt_FoundOopses; char *buffer; @@ -126,7 +126,7 @@ int CKerneloopsScanner::ScanDmesg() int CKerneloopsScanner::ScanSysLogFile(const char *filename) { - log("Scanning syslog..."); + VERB1 log("Scanning syslog..."); char *buffer; struct stat statb; diff --git a/lib/Utils/DebugDump.cpp b/lib/Utils/DebugDump.cpp index a36594b..6056443 100644 --- a/lib/Utils/DebugDump.cpp +++ b/lib/Utils/DebugDump.cpp @@ -149,7 +149,7 @@ static int GetAndSetLock(const char* pLockFile, const char* pPID) perror_msg_and_die("Can't write lock file '%s'", pLockFile); } - log("Locked '%s'", pLockFile); + VERB1 log("Locked '%s'", pLockFile); return fd; } @@ -172,10 +172,10 @@ void CDebugDump::UnLock() if (m_nLockfileFD >= 0) { std::string lockFile = m_sDebugDumpDir + ".lock"; - log("UnLocking '%s'", lockFile.c_str()); close(m_nLockfileFD); m_nLockfileFD = -1; xunlink(lockFile.c_str()); + VERB1 log("UnLocked '%s'", lockFile.c_str()); } } diff --git a/src/Daemon/PluginManager.cpp b/src/Daemon/PluginManager.cpp index a36d5a8..73d4dff 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; } } |