X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fclustering%2Fservices_implementation%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fclustering%2Fservices_implementation%2Finternal%2FClusterManager.java;h=476b1b12f55370acaf22465f31378ad67a21bb6f;hb=d192c699590d441eb96a697b9e8ab7a028f18860;hp=058c616ad87b281b2d7d3420fcb98cdb28f6ffa1;hpb=ee829bb84c3488d19f9221de2814ea6e3f2e7186;p=controller.git diff --git a/opendaylight/clustering/services_implementation/src/main/java/org/opendaylight/controller/clustering/services_implementation/internal/ClusterManager.java b/opendaylight/clustering/services_implementation/src/main/java/org/opendaylight/controller/clustering/services_implementation/internal/ClusterManager.java index 058c616ad8..476b1b12f5 100644 --- a/opendaylight/clustering/services_implementation/src/main/java/org/opendaylight/controller/clustering/services_implementation/internal/ClusterManager.java +++ b/opendaylight/clustering/services_implementation/src/main/java/org/opendaylight/controller/clustering/services_implementation/internal/ClusterManager.java @@ -243,10 +243,8 @@ public class ClusterManager implements IClusterServices { } catch (Exception e) { logger.error("GossipRouter didn't start exception " + e + " met"); - StringWriter sw = new StringWriter(); logger.error("Stack Trace that raised the exception"); - e.printStackTrace(new PrintWriter(sw)); - logger.error(sw.toString()); + logger.error("",e); } } logger.info("Starting the ClusterManager"); @@ -260,11 +258,9 @@ public class ClusterManager implements IClusterServices { logger.debug("Started the ClusterManager"); } } catch (Exception ioe) { - StringWriter sw = new StringWriter(); logger.error("Cannot configure infinispan .. bailing out "); logger.error("Stack Trace that raised th exception"); - ioe.printStackTrace(new PrintWriter(sw)); - logger.error(sw.toString()); + logger.error("",ioe); this.cm = null; this.stop(); }