cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kous...@apache.org
Subject [15/50] [abbrv] git commit: updated refs/heads/cisco-vnmc-api-integration to 7ce45ea
Date Mon, 15 Apr 2013 13:10:14 GMT
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>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/7fb63be6
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/7fb63be6
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/7fb63be6

Branch: refs/heads/cisco-vnmc-api-integration
Commit: 7fb63be6e1c2ed2b6d2de02dae3ec0f77f1748f3
Parents: c1a8540
Author: Anshul Gangwar <anshul.gangwar@citrix.com>
Authored: Wed Apr 10 14:07:42 2013 +0530
Committer: Sateesh Chodapuneedi <sateesh@apache.org>
Committed: Fri Apr 12 07:15:06 2013 +0530

----------------------------------------------------------------------
 .../cloudstack/syslog/AlertsSyslogAppender.java    |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7fb63be6/plugins/alert-handlers/syslog-alerts/src/org/apache/cloudstack/syslog/AlertsSyslogAppender.java
----------------------------------------------------------------------
diff --git a/plugins/alert-handlers/syslog-alerts/src/org/apache/cloudstack/syslog/AlertsSyslogAppender.java
b/plugins/alert-handlers/syslog-alerts/src/org/apache/cloudstack/syslog/AlertsSyslogAppender.java
index d2f2565..09563da 100644
--- a/plugins/alert-handlers/syslog-alerts/src/org/apache/cloudstack/syslog/AlertsSyslogAppender.java
+++ b/plugins/alert-handlers/syslog-alerts/src/org/apache/cloudstack/syslog/AlertsSyslogAppender.java
@@ -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;
     }
-}
\ No newline at end of file
+}


Mime
View raw message