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;
|
||||
try {
|
||||
while ((line = reader.readLine()) != null) {
|
||||
trackerProcessLogger.info(line);
|
||||
trackerProcessLogger.error(line);
|
||||
}
|
||||
trackerProcess.get().waitFor();
|
||||
trackerProcessLogger.info("Tracker Process ends with exit code " +
|
||||
trackerProcess.get().exitValue());
|
||||
int 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) {
|
||||
trackerProcessLogger.error(ex.toString());
|
||||
} catch (InterruptedException ie) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user