Skip to content

Commit

Permalink
[Feature/betterlogs] Improved logs a lot
Browse files Browse the repository at this point in the history
  • Loading branch information
Alathreon committed May 17, 2024
1 parent beb3d1b commit 0b8c4c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public JShellService(DockerService dockerService, JShellSessionService sessionSe
writer.write(sanitize(startupScript));
writer.newLine();
} catch (IOException | InterruptedException e) {
LOGGER.warn("Unexpected error during creation.", e);
throw new DockerException(e);
}
this.doingOperation = false;
Expand Down Expand Up @@ -84,6 +85,7 @@ public Optional<JShellResult> eval(String code) throws DockerException {

return Optional.of(readResult());
} catch (DockerException | IOException | NumberFormatException ex) {
LOGGER.warn("Unexpected error.", ex);
close();
throw new DockerException(ex);
} finally {
Expand Down Expand Up @@ -151,6 +153,7 @@ public Optional<List<String>> snippets() throws DockerException {
}
return Optional.of(snippets);
} catch (IOException ex) {
LOGGER.warn("Unexpected error.", ex);
close();
throw new DockerException(ex);
} finally {
Expand Down Expand Up @@ -236,6 +239,7 @@ private void checkContainerOK() throws DockerException {
}
}
} catch (IOException ex) {
LOGGER.warn("Unexpected error.", ex);
throw new DockerException(ex);
}
}
Expand Down
3 changes: 1 addition & 2 deletions JShellAPI/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ jshellapi.dockerConnectionTimeout=60
server.error.include-message=always

# Spring
# TODO change the following to DEBUG later
logging.level.org.springframework.web=INFO
logging.level.org.springframework.web=DEBUG

0 comments on commit 0b8c4c4

Please sign in to comment.