summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java
index 3efbf4f..bd2a2a5 100644
--- a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java
+++ b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java
@@ -166,7 +166,7 @@ public class MirrorMakerAgent {
prop.store(out, "");
} catch (Exception e) {
- e.printStackTrace();
+ logger.error("Exception at checkPropertiesFile " +e);
}
} finally {
if (input != null) {
@@ -380,7 +380,7 @@ public class MirrorMakerAgent {
}
}
logger.info("Adding new MirrorMaker:" + newMirrorMaker.name);
- if (!exists && mirrorMakers != null) {
+ if (exists == false && mirrorMakers != null) {
mirrorMakers.getListMirrorMaker().add(newMirrorMaker);
} else if (exists == false && mirrorMakers == null) {
mirrorMakers = new ListMirrorMaker();