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/03/17 16:36:22 UTC
[2/3] git commit: logging exceptions
logging exceptions
Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/9898dd64
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/9898dd64
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/9898dd64
Branch: refs/heads/master
Commit: 9898dd6465455837444f3b661d934e6dcb432826
Parents: dbf4878
Author: Nirmal Fernando <ni...@apache.org>
Authored: Mon Mar 17 21:01:06 2014 +0530
Committer: Nirmal Fernando <ni...@apache.org>
Committed: Mon Mar 17 21:01:06 2014 +0530
----------------------------------------------------------------------
.../cartridge/agent/config/CartridgeAgentConfiguration.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/9898dd64/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/config/CartridgeAgentConfiguration.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/config/CartridgeAgentConfiguration.java b/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/config/CartridgeAgentConfiguration.java
index 305106c..4f81802 100644
--- a/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/config/CartridgeAgentConfiguration.java
+++ b/components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/config/CartridgeAgentConfiguration.java
@@ -106,7 +106,9 @@ public class CartridgeAgentConfiguration {
}
scanner.close();
} catch (Exception e) {
- throw new RuntimeException("Could not read launch parameter file", e);
+ String message = "Could not read launch parameter file";
+ log.error(message, e);
+ throw new RuntimeException(message, e);
}
return null;
}