From 8f8ac130fba4c3993706dec3d87099a7541b74fc Mon Sep 17 00:00:00 2001 From: fros4943 Date: Mon, 20 Apr 2009 16:08:53 +0000 Subject: [PATCH] fixed error output in log4j --- tools/cooja/java/se/sics/cooja/MoteInterface.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/MoteInterface.java b/tools/cooja/java/se/sics/cooja/MoteInterface.java index 39622884d..5a3f952c0 100644 --- a/tools/cooja/java/se/sics/cooja/MoteInterface.java +++ b/tools/cooja/java/se/sics/cooja/MoteInterface.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: MoteInterface.java,v 1.5 2009/02/26 13:36:15 fros4943 Exp $ + * $Id: MoteInterface.java,v 1.6 2009/04/20 16:08:53 fros4943 Exp $ */ package se.sics.cooja; @@ -84,8 +84,7 @@ public abstract class MoteInterface extends Observable { return instance; } catch (Exception e) { - logger.fatal("Exception when creating " + interfaceClass + ": " + e); - e.printStackTrace(); + logger.fatal("Exception when calling constructor of " + interfaceClass, e); return null; } }