mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-1993: fixed the issue of not sending syslog messages for alertType 0
Signed-off-by: Anshul Gangwar <anshul.gangwar@citrix.com> Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
This commit is contained in:
parent
c1a85401ae
commit
7fb63be6e1
@ -217,7 +217,7 @@ public class AlertsSyslogAppender extends AppenderSkeleton {
|
||||
message.append("unknown" + MESSAGE_DELIMITER_STRING);
|
||||
}
|
||||
|
||||
if (alertType > 0) {
|
||||
if (alertType >= 0) {
|
||||
message.append("alertType").append(_keyValueDelimiter).append(" ").append(alertsMap.get(alertType))
|
||||
.append(MESSAGE_DELIMITER_STRING);
|
||||
if (dataCenterId != 0) {
|
||||
@ -333,4 +333,4 @@ public class AlertsSyslogAppender extends AppenderSkeleton {
|
||||
public void setKeyValueDelimiter(String keyValueDelimiter) {
|
||||
this._keyValueDelimiter = keyValueDelimiter;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user