}
}
} catch (Exception e) {
- e.printStackTrace();
+ logger.error("Error at checkMirrorMakerProcess method:" + e.getMessage());
}
return false;
}
logger.info("Mirror Maker " + agentname + " Stopped");
} catch (Exception e) {
- e.printStackTrace();
+ logger.error("Error at stopMirrorMaker method:" + e.getMessage());
}
}
+ "_MMaker.log";
final Process process = rt.exec(args);
new Thread() {
+ @Override
public void run() {
try {
InputStream is = process.getInputStream();
// System.out.println(line);
}
} catch (Exception anExc) {
- anExc.printStackTrace();
+ logger.error("Error at startMirrorMaker method:" + anExc.getMessage());
}
}
}.start();
// System.out.println(line);
}
} catch (Exception anExc) {
- anExc.printStackTrace();
+ logger.error("Exception at startMirrorMaker method else part run method:" + anExc.getMessage());
}
}
}.start();