Skip to content

Commit

Permalink
Turned on the python logging functions to hopefully get proper errors…
Browse files Browse the repository at this point in the history
… in the UI
  • Loading branch information
Sean-McCann-HG committed Oct 9, 2024
1 parent c4697f0 commit 00b294c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,11 @@ public String readProcessOutput(ProcessBuilder pb, String delimiter) {
final InputStream is = process.getInputStream();
BufferedReader reader = new BufferedReader(new InputStreamReader(is));
// String startTime = ZonedDateTime.now(ZoneId.of("Pacific/Auckland")).format( DateTimeFormatter.ofPattern( "uuuu.MM.dd.HH.mm.ss" ));
// LOGGER.info("Started python process with pid: " + Long.toString(process.pid()) + " at " + startTime);
LOGGER.info("Started python process with pid: " + Long.toString(process.pid()) + " at " + startTime);
do {
while ((line = reader.readLine()) != null) {
sb2.append(line+delimiter);
//LOGGER.info("PY>"+line);
LOGGER.info("PY>"+line);
}
}
while (process.isAlive());
Expand All @@ -355,7 +355,7 @@ public String readProcessOutput(ProcessBuilder pb, String delimiter) {
sb2.append("No return value. Process exit_code="+process.exitValue()+delimiter);
}
// String endTime = ZonedDateTime.now(ZoneId.of("Pacific/Auckland")).format( DateTimeFormatter.ofPattern( "uuuu.MM.dd.HH.mm.ss" ));
// LOGGER.info("Exited python process with pid: " + Long.toString(process.pid()) + " at " + endTime);
LOGGER.info("Exited python process with pid: " + Long.toString(process.pid()) + " at " + endTime);
}
catch (IOException ioe) {
LOGGER.warning("Error starting and reading process output "+ioe);
Expand Down

0 comments on commit 00b294c

Please sign in to comment.