mirror of https://github.com/Icinga/icinga2.git
Made the debug log level slightly less spammy.
This commit is contained in:
parent
7f86ac3390
commit
3ab071fbcb
|
@ -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";;
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue