set log level as ERROR for trackerProcess has some stderr output (#7952)
This commit is contained in:
parent
5a7dc41351
commit
27c66f12d1
@ -55,11 +55,15 @@ public class RabitTracker implements IRabitTracker {
|
|||||||
String line;
|
String line;
|
||||||
try {
|
try {
|
||||||
while ((line = reader.readLine()) != null) {
|
while ((line = reader.readLine()) != null) {
|
||||||
trackerProcessLogger.info(line);
|
trackerProcessLogger.error(line);
|
||||||
}
|
}
|
||||||
trackerProcess.get().waitFor();
|
trackerProcess.get().waitFor();
|
||||||
trackerProcessLogger.info("Tracker Process ends with exit code " +
|
int exitValue = trackerProcess.get().exitValue();
|
||||||
trackerProcess.get().exitValue());
|
if (exitValue != 0) {
|
||||||
|
trackerProcessLogger.error("Tracker Process ends with exit code " + exitValue);
|
||||||
|
} else {
|
||||||
|
trackerProcessLogger.info("Tracker Process ends with exit code " + exitValue);
|
||||||
|
}
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
trackerProcessLogger.error(ex.toString());
|
trackerProcessLogger.error(ex.toString());
|
||||||
} catch (InterruptedException ie) {
|
} catch (InterruptedException ie) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user