disable logging.
This commit is contained in:
parent
b8bfa77cc2
commit
e415ead1ec
@ -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) {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user