log launcher into a file before router starts, launcher.log. Get rid of system.out logging.
This commit is contained in:
@ -59,7 +59,7 @@ class WinUpdateProcess implements Runnable {
|
|||||||
try {
|
try {
|
||||||
pb.directory(workingDir).redirectErrorStream(true).redirectOutput(logFile).start();
|
pb.directory(workingDir).redirectErrorStream(true).redirectOutput(logFile).start();
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
_log.Error("Unable to run update-program in background. Update will fail.");
|
_log.error("Unable to run update-program in background. Update will fail.");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// If we cant write to the log file and we're on Windows, use the elevator to
|
// If we cant write to the log file and we're on Windows, use the elevator to
|
||||||
@ -74,7 +74,7 @@ class WinUpdateProcess implements Runnable {
|
|||||||
try {
|
try {
|
||||||
runUpdateInstaller();
|
runUpdateInstaller();
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
_log.Error("Error running updater, update may fail." + ioe);
|
_log.error("Error running updater, update may fail." + ioe);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user