mirror of https://github.com/Icinga/icinga2.git
Add log message if notifications are forced (i.e. filters are not checked)
fixes #12404
This commit is contained in:
parent
8b12683e0d
commit
f5d5eaf344
|
@ -352,6 +352,9 @@ void Notification::BeginExecuteNotification(NotificationType type, const CheckRe
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
Log(LogNotice, "Notification")
|
||||||
|
<< "Not checking notification filters for notification object '" << GetName() << "': Notification was forced.";
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -488,6 +491,10 @@ bool Notification::CheckNotificationUserFilters(NotificationType type, const Use
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
Log(LogNotice, "Notification")
|
||||||
|
<< "Not checking notification filters for notification object '"
|
||||||
|
<< GetName() << "' and user '" << user->GetName() << "': Notification was forced.";
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue