You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ni...@apache.org on 2014/10/11 06:13:34 UTC

[48/50] [abbrv] git commit: Make pod activation error log to just print error message as it clutters the log due to the frequency, and print the full log on debug.

Make pod activation error log to just print error message as it clutters the log due to the frequency, and print the full log on debug.


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

Branch: refs/heads/master
Commit: edc243e9d1fc1a821c1887ee0e6e8432abc1a425
Parents: 06b1675
Author: Nirmal Fernando <ni...@gmail.com>
Authored: Sat Oct 11 09:10:38 2014 +0530
Committer: Nirmal Fernando <ni...@gmail.com>
Committed: Sat Oct 11 09:30:58 2014 +0530

----------------------------------------------------------------------
 .../stratos/cloud/controller/util/PodActivationWatcher.java   | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/edc243e9/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/util/PodActivationWatcher.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/util/PodActivationWatcher.java b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/util/PodActivationWatcher.java
index 672cfeb..23924b4 100644
--- a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/util/PodActivationWatcher.java
+++ b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/util/PodActivationWatcher.java
@@ -67,7 +67,12 @@ public class PodActivationWatcher implements Runnable {
             }
             
         } catch (Exception e) {
-            LOG.error("Container Activation Watcher Failed.. ", e);
+            // not logging exception intentionally
+            LOG.error("Container Activation Watcher Failed.. Cause: "+e.getMessage());
+            
+            if (LOG.isDebugEnabled()) {
+                LOG.debug(e);
+            }
         }
         
     }