disable logging.

This commit is contained in:
Yoshihiro OKUMURA 2022-10-14 12:10:10 +09:00
parent b8bfa77cc2
commit e415ead1ec
2 changed files with 4 additions and 2 deletions

View File

@ -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) {

View File

@ -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);