mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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;
|
||||
}
|
||||
}
|
||||
} 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;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Log(LogNotice, "Notification")
|
||||
<< "Not checking notification filters for notification object '"
|
||||
<< GetName() << "' and user '" << user->GetName() << "': Notification was forced.";
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user