Skip to content

Commit

Permalink
Output Resource or Container logs
Browse files Browse the repository at this point in the history
  • Loading branch information
alesj committed Oct 18, 2024
1 parent ad89723 commit 5b12d57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ public void startContainers(LaunchModeBuildItem launchMode,
consoleInstalledBuildItem,
loggingSetupBuildItem,
s -> false,
s -> s.contains(getClass().getSimpleName())); // log if it comes from this class
s -> s.contains(getClass().getSimpleName()) ||
s.contains("Resource") ||
s.contains("Container")); // log if it comes from this class or Resource / Container
try {
DevServicesResultBuildItem.RunningDevService newDevService = startContainer(
devId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected byte[] getResourceAsBytes(String resource) {

@SuppressWarnings("OctalInteger")
protected void addFileToContainer(byte[] content, String pathInContainer) {
log.infof("Content [%s]: \n{}", pathInContainer, new String(content, StandardCharsets.UTF_8));
log.infof("Content [%s]: \n%s", pathInContainer, new String(content, StandardCharsets.UTF_8));
withCopyToContainer(Transferable.of(content, 0777), pathInContainer);
}

Expand Down

0 comments on commit 5b12d57

Please sign in to comment.