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