Commit 1a9efb3e authored by legoc's avatar legoc

Added name of alarms and warning in the mail subject

parent 04c1f000
......@@ -168,9 +168,9 @@ void Alarm::delay() {
std::string Alarm::getNotificationSubject() {
if (getState() == CONDITION_ACTIVE) {
return "Alarm";
return string("Alarm ") + getName();
} else {
return "End of alarm";
return string("End of alarm ") + getName();
}
}
......
......@@ -66,7 +66,7 @@ void Warning::check() {
}
std::string Warning::getNotificationSubject() {
return "Warning";
return string("Warning ") + getName();
}
std::string Warning::getStringType() {
......
......@@ -115,7 +115,7 @@ void Watchdog::executeActions() {
}
std::string Watchdog::getNotificationSubject() {
return "Watchdog";
return string("Watchdog ") + getName();
}
std::string Watchdog::getStringType() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment