Made the debug log level slightly less spammy.

This commit is contained in:
Gunnar Beutner 2013-02-09 10:55:54 +01:00
parent 7f86ac3390
commit 3ab071fbcb
2 changed files with 5 additions and 7 deletions

View File

@ -53,8 +53,6 @@ void CheckerComponent::Stop(void)
void CheckerComponent::CheckTimerHandler(void) void CheckerComponent::CheckTimerHandler(void)
{ {
Logger::Write(LogDebug, "checker", "CheckTimerHandler entered.");
double now = Utility::GetTime(); double now = Utility::GetTime();
long tasks = 0; long tasks = 0;
@ -116,8 +114,6 @@ void CheckerComponent::CheckTimerHandler(void)
tasks++; tasks++;
} }
Logger::Write(LogDebug, "checker", "CheckTimerHandler: past loop.");
if (missedServices > 0) { if (missedServices > 0) {
stringstream msgbuf; stringstream msgbuf;
msgbuf << "Missed " << missedChecks << " checks for " << missedServices << " services";; msgbuf << "Missed " << missedChecks << " checks for " << missedServices << " services";;

View File

@ -78,9 +78,11 @@ double Timer::ProcessTimers(void)
double et = Utility::GetTime(); double et = Utility::GetTime();
stringstream msgbuf; if (et - st > 0.01) {
msgbuf << "Timers took " << et - st << " seconds"; stringstream msgbuf;
Logger::Write(LogDebug, "base", msgbuf.str()); msgbuf << "Timers took " << et - st << " seconds";
Logger::Write(LogDebug, "base", msgbuf.str());
}
return wakeup; return wakeup;
} }