mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Only log check timer when we actually created any tasks.
This commit is contained in:
parent
e426548863
commit
ac11c84813
@ -108,9 +108,11 @@ void CheckerComponent::CheckTimerHandler(void)
|
||||
Logger::Write(LogWarning, "checker", msgbuf.str());
|
||||
}
|
||||
|
||||
stringstream msgbuf;
|
||||
msgbuf << "CheckTimerHandler: created " << tasks << " tasks";
|
||||
Logger::Write(LogInformation, "checker", msgbuf.str());
|
||||
if (tasks > 0) {
|
||||
stringstream msgbuf;
|
||||
msgbuf << "CheckTimerHandler: created " << tasks << " tasks";
|
||||
Logger::Write(LogInformation, "checker", msgbuf.str());
|
||||
}
|
||||
}
|
||||
|
||||
void CheckerComponent::CheckCompletedHandler(const Service::Ptr& service, const ScriptTask::Ptr& task)
|
||||
|
Loading…
x
Reference in New Issue
Block a user