sonar critical for Exception handling
[dmaap/messagerouter/mirroragent.git] / src / main / java / com / att / nsa / dmaapMMAgent / utils / MirrorMakerProcessHandler.java
index 2a1bc7d..80a47af 100644 (file)
@@ -60,7 +60,7 @@ public class MirrorMakerProcessHandler {
                                }
                        }
                } catch (Exception e) {
-                       e.printStackTrace();
+                       logger.error("Error at checkMirrorMakerProcess method:" + e.getMessage());
                }
                return false;
        }
@@ -92,7 +92,7 @@ public class MirrorMakerProcessHandler {
 
                        logger.info("Mirror Maker " + agentname + " Stopped");
                } catch (Exception e) {
-                       e.printStackTrace();
+                       logger.error("Error at stopMirrorMaker method:" + e.getMessage());
                }
 
        }
@@ -119,7 +119,7 @@ public class MirrorMakerProcessHandler {
                                                                // System.out.println(line);
                                                        }
                                                } catch (Exception anExc) {
-                                                       anExc.printStackTrace();
+                                                       logger.error("Error at startMirrorMaker method:" + anExc.getMessage());
                                                }
                                        }
                                }.start();