mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Change log level for some messages.
This commit is contained in:
parent
c12b4b2e0b
commit
e045ece3de
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user