diff --git a/src/main/java/jp/riken/neurodata/tools/BioFormatsImageInfo.java b/src/main/java/jp/riken/neurodata/tools/BioFormatsImageInfo.java index fc5b612..9bc3091 100644 --- a/src/main/java/jp/riken/neurodata/tools/BioFormatsImageInfo.java +++ b/src/main/java/jp/riken/neurodata/tools/BioFormatsImageInfo.java @@ -256,7 +256,7 @@ public class BioFormatsImageInfo { } else { final String path = args[0]; try { - DebugTools.enableLogging("ERROR"); + DebugTools.enableLogging("OFF"); format = readMetadata(path, metadata); BioFormatsImageThumbnail.readThumbnail(path, thumbnail); } catch (Throwable t) { diff --git a/src/main/java/jp/riken/neurodata/tools/BioFormatsImageThumbnail.java b/src/main/java/jp/riken/neurodata/tools/BioFormatsImageThumbnail.java index 81044fc..94b7941 100644 --- a/src/main/java/jp/riken/neurodata/tools/BioFormatsImageThumbnail.java +++ b/src/main/java/jp/riken/neurodata/tools/BioFormatsImageThumbnail.java @@ -157,6 +157,8 @@ public class BioFormatsImageThumbnail { reader.setId(path); } catch (FormatException | IOException e) { throw new BioFormatsImageException("unsupported file: " + path); + } catch (Throwable t) { + throw new BioFormatsImageException(t); } try { int series = 0; @@ -256,7 +258,7 @@ public class BioFormatsImageThumbnail { } final String path = args[0]; try { - DebugTools.enableLogging("ERROR"); + DebugTools.enableLogging("OFF"); BufferedImage image = getImageFromBioFormatsFile(path); final String format = image.getColorModel().hasAlpha() ? "png" : "jpeg"; // image = resize(image, 160, 160);