String notificationName = GetName();
Log(LogNotice, "Notification")
- << "Attempting to send " << (reminder ? "reminder " : " ") << "notifications for notification object '" << notificationName << "'.";
+ << "Attempting to send " << (reminder ? "reminder " : "") << "notifications for notification object '" << notificationName << "'.";
Checkable::Ptr checkable = GetCheckable();
if (tp && !tp->IsInside(Utility::GetTime())) {
Log(LogNotice, "Notification")
- << "Not sending " << (reminder ? "reminder " : " ") << "notifications for notification object '" << notificationName
+ << "Not sending " << (reminder ? "reminder " : "") << "notifications for notification object '" << notificationName
<< "': not in timeperiod '" << tp->GetName() << "'";
return;
}
if (timesBegin != Empty && timesBegin >= 0 && now < checkable->GetLastHardStateChange() + timesBegin) {
Log(LogNotice, "Notification")
- << "Not sending " << (reminder ? "reminder " : " ") << "notifications for notification object '"
+ << "Not sending " << (reminder ? "reminder " : "") << "notifications for notification object '"
<< notificationName << "': before specified begin time (" << Utility::FormatDuration(timesBegin) << ")";
/* we need to adjust the next notification time
if (timesEnd != Empty && timesEnd >= 0 && now > checkable->GetLastHardStateChange() + timesEnd) {
Log(LogNotice, "Notification")
- << "Not sending " << (reminder ? "reminder " : " ") << "notifications for notification object '"
+ << "Not sending " << (reminder ? "reminder " : "") << "notifications for notification object '"
<< notificationName << "': after specified end time (" << Utility::FormatDuration(timesEnd) << ")";
return;
}
if (!(ftype & GetTypeFilter())) {
Log(LogNotice, "Notification")
- << "Not sending " << (reminder ? "reminder " : " ") << "notifications for notification object '"
+ << "Not sending " << (reminder ? "reminder " : "") << "notifications for notification object '"
<< notificationName << "': type '"
<< NotificationTypeToStringInternal(type) << "' does not match type filter: "
<< NotificationFilterToString(GetTypeFilter(), GetTypeFilterMap()) << ".";
if (!(fstate & GetStateFilter())) {
Log(LogNotice, "Notification")
- << "Not sending " << (reminder ? "reminder " : " ") << "notifications for notification object '"
+ << "Not sending " << (reminder ? "reminder " : "") << "notifications for notification object '"
<< notificationName << "': state '" << stateStr
<< "' does not match state filter: " << NotificationFilterToString(GetStateFilter(), GetStateFilterMap()) << ".";
return;
}
} else {
Log(LogNotice, "Notification")
- << "Not checking " << (reminder ? "reminder " : " ") << "notification filters for notification object '"
+ << "Not checking " << (reminder ? "reminder " : "") << "notification filters for notification object '"
<< notificationName << "': Notification was forced.";
}
if (tp && !tp->IsInside(Utility::GetTime())) {
Log(LogNotice, "Notification")
- << "Not sending " << (reminder ? "reminder " : " ") << "notifications for notification object '"
+ << "Not sending " << (reminder ? "reminder " : "") << "notifications for notification object '"
<< notificationName << " and user '" << userName
<< "': user period not in timeperiod '" << tp->GetName() << "'";
return false;
if (!(ftype & user->GetTypeFilter())) {
Log(LogNotice, "Notification")
- << "Not sending " << (reminder ? "reminder " : " ") << "notifications for notification object '"
+ << "Not sending " << (reminder ? "reminder " : "") << "notifications for notification object '"
<< notificationName << " and user '" << userName << "': type '"
<< NotificationTypeToStringInternal(type) << "' does not match type filter: "
<< NotificationFilterToString(user->GetTypeFilter(), GetTypeFilterMap()) << ".";
if (!(fstate & user->GetStateFilter())) {
Log(LogNotice, "Notification")
- << "Not " << (reminder ? "reminder " : " ") << "sending notifications for notification object '"
+ << "Not " << (reminder ? "reminder " : "") << "sending notifications for notification object '"
<< notificationName << " and user '" << userName << "': state '" << stateStr
<< "' does not match state filter: " << NotificationFilterToString(user->GetStateFilter(), GetStateFilterMap()) << ".";
return false;
}
} else {
Log(LogNotice, "Notification")
- << "Not checking " << (reminder ? "reminder " : " ") << "notification filters for notification object '"
+ << "Not checking " << (reminder ? "reminder " : "") << "notification filters for notification object '"
<< notificationName << "' and user '" << userName << "': Notification was forced.";
}