mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +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;
|
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…
x
Reference in New Issue
Block a user