Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public static void dumpContainerLogDirToTarget(DockerClient docker, String conta

try (InputStream dockerStream = docker.copyArchiveFromContainerCmd(containerId, path).exec();
TarArchiveInputStream stream = new TarArchiveInputStream(dockerStream)) {
TarArchiveEntry entry = stream.getNextTarEntry();
TarArchiveEntry entry = stream.getNextEntry();
while (entry != null) {
if (entry.isFile()) {
File targetDir = getTargetDirectory(containerId);
Expand All @@ -149,7 +149,7 @@ public static void dumpContainerLogDirToTarget(DockerClient docker, String conta
}
}
}
entry = stream.getNextTarEntry();
entry = stream.getNextEntry();
}
} catch (RuntimeException | IOException e) {
LOG.error("Error reading bk logs from container {}", containerId, e);
Expand Down