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 { } else {
final String path = args[0]; final String path = args[0];
try { try {
DebugTools.enableLogging("ERROR"); DebugTools.enableLogging("OFF");
format = readMetadata(path, metadata); format = readMetadata(path, metadata);
BioFormatsImageThumbnail.readThumbnail(path, thumbnail); BioFormatsImageThumbnail.readThumbnail(path, thumbnail);
} catch (Throwable t) { } catch (Throwable t) {

View File

@ -157,6 +157,8 @@ public class BioFormatsImageThumbnail {
reader.setId(path); reader.setId(path);
} catch (FormatException | IOException e) { } catch (FormatException | IOException e) {
throw new BioFormatsImageException("unsupported file: " + path); throw new BioFormatsImageException("unsupported file: " + path);
} catch (Throwable t) {
throw new BioFormatsImageException(t);
} }
try { try {
int series = 0; int series = 0;
@ -256,7 +258,7 @@ public class BioFormatsImageThumbnail {
} }
final String path = args[0]; final String path = args[0];
try { try {
DebugTools.enableLogging("ERROR"); DebugTools.enableLogging("OFF");
BufferedImage image = getImageFromBioFormatsFile(path); BufferedImage image = getImageFromBioFormatsFile(path);
final String format = image.getColorModel().hasAlpha() ? "png" : "jpeg"; final String format = image.getColorModel().hasAlpha() ? "png" : "jpeg";
// image = resize(image, 160, 160); // image = resize(image, 160, 160);