Skip to content

Commit

Permalink
Add debug for file size (#1340)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwalluck authored Feb 13, 2025
1 parent adc01c3 commit eca363d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
import org.apache.commons.collections4.multimap.HashSetValuedHashMap;
import org.apache.commons.io.FilenameUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.vfs2.FileContent;
import org.apache.commons.vfs2.FileExtensionSelector;
import org.apache.commons.vfs2.FileObject;
import org.apache.commons.vfs2.FileSystem;
Expand Down Expand Up @@ -219,8 +220,9 @@ public Map<ChecksumType, MultiValuedMap<String, LocalFile>> checksumFiles() thro
for (String input : inputs) {
try (FileObject fo = getFileObjectOfFile(manager, input)) {
if (LOGGER.isDebugEnabled()) {
Path path = fo.getPath();
LOGGER.debug("Will checksum file {}, size: {}", path, Files.size(path));
try (FileContent fc = fo.getContent()) {
LOGGER.debug("Will checksum file {}, size: {}", fo, fc.getSize());
}
}

root = fo.getName()
Expand Down

0 comments on commit eca363d

Please sign in to comment.