Change log level for some messages.

This commit is contained in:
Gunnar Beutner 2013-09-18 10:30:11 +02:00
parent c12b4b2e0b
commit e045ece3de
1 changed files with 3 additions and 3 deletions

View File

@ -193,12 +193,12 @@ void Service::TriggerDowntime(const String& id)
return;
if (IsDowntimeActive(downtime) && IsDowntimeTriggered(downtime)) {
Log(LogWarning, "icinga", "not triggering downtime with ID '" + downtime->Get("legacy_id") + "': already triggered.");
Log(LogDebug, "icinga", "Not triggering downtime with ID '" + downtime->Get("legacy_id") + "': already triggered.");
return;
}
if (IsDowntimeExpired(downtime)) {
Log(LogWarning, "icinga", "not triggering downtime with ID '" + downtime->Get("legacy_id") + "': expired.");
Log(LogDebug, "icinga", "Not triggering downtime with ID '" + downtime->Get("legacy_id") + "': expired.");
return;
}
@ -208,7 +208,7 @@ void Service::TriggerDowntime(const String& id)
now > downtime->Get("end_time"))
return;
Log(LogWarning, "icinga", "triggering downtime with ID '" + downtime->Get("legacy_id") + "'.");
Log(LogDebug, "icinga", "Triggering downtime with ID '" + downtime->Get("legacy_id") + "'.");
if (downtime->Get("trigger_time") == 0)
downtime->Set("trigger_time", now);