set log level as ERROR for trackerProcess has some stderr output (#7952)

This commit is contained in:
Yang Jiandan 2022-05-31 22:54:38 +08:00 committed by GitHub
parent 5a7dc41351
commit 27c66f12d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {