Skip to content

Commit

Permalink
Remove unnecessary logging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
dgault committed Nov 13, 2023
1 parent 6b1da51 commit ae65321
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/loci/formats/in/ZarrReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -1099,16 +1099,13 @@ public String[] getUsedFiles(boolean noPixels) {

boolean skipPixels = noPixels || !listPixels() || !systemEnvListPixels();
boolean includeLabels = includeLabels();
LOGGER.error("ZarrReader getUsed files, skipPixels: {}", skipPixels);
LOGGER.error("ZarrReader fetching list of used files: {}", zarrRootPath);
try (Stream<Path> paths = Files.walk(Paths.get(zarrRootPath), FileVisitOption.FOLLOW_LINKS)) {
paths.filter(Files::isRegularFile)
.forEach(path -> {if ((!skipPixels && includeLabels) ||
(!skipPixels && !includeLabels && !path.toString().toLowerCase().contains("labels")) ||
(skipPixels && includeLabels && (path.endsWith(".zgroup") || path.endsWith(".zattrs") || path.endsWith(".xml"))) ||
(skipPixels && !includeLabels && !path.toString().toLowerCase().contains("labels") &&(path.endsWith(".zgroup") || path.endsWith(".zattrs") || path.endsWith(".xml"))))
usedFiles.add(path.toFile().getAbsolutePath());
LOGGER.error("Adding to the used files list: {}", path.toFile().getAbsolutePath());
});
} catch (IOException e) {
e.printStackTrace();
Expand Down Expand Up @@ -1183,7 +1180,6 @@ private boolean systemEnvListPixels() {
private void reloadOptionsFile(String id) {
String optionsFile = DynamicMetadataOptions.getMetadataOptionsFile(id);
if (optionsFile != null) {
LOGGER.error("ZarrReader loaded options file from: {}", id);
MetadataOptions options = getMetadataOptions();
if (options != null && options instanceof DynamicMetadataOptions) {
try {
Expand Down

0 comments on commit ae65321

Please sign in to comment.