[libbluray-devel] Use logger
hpi1
git at videolan.org
Sat Apr 4 22:48:38 CEST 2015
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sat Apr 4 23:43:35 2015 +0300| [f68940d83cbb923acb0519f7afe56a3879c4edc6] | committer: hpi1
Use logger
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=f68940d83cbb923acb0519f7afe56a3879c4edc6
---
src/libbluray/bdj/java/java/awt/BDToolkitBase.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/libbluray/bdj/java/java/awt/BDToolkitBase.java b/src/libbluray/bdj/java/java/awt/BDToolkitBase.java
index ba837ab..e210dea 100644
--- a/src/libbluray/bdj/java/java/awt/BDToolkitBase.java
+++ b/src/libbluray/bdj/java/java/awt/BDToolkitBase.java
@@ -62,8 +62,7 @@ abstract class BDToolkitBase extends Toolkit {
((BDToolkit)toolkit).shutdown();
}
} catch (Throwable t) {
- logger.error("shutdownDisc() failed: " + t);
- t.printStackTrace();
+ logger.error("shutdownDisc() failed: " + t + "\n" + Logger.dumpStack(t));
}
}
@@ -85,7 +84,7 @@ abstract class BDToolkitBase extends Toolkit {
Graphics getGraphics(Window window) {
if (!(window instanceof BDRootWindow)) {
- System.err.println("getGraphics(): not BDRootWindow");
+ logger.error("getGraphics(): not BDRootWindow");
throw new Error("Not implemented");
}
return new BDWindowGraphics((BDRootWindow)window);
More information about the libbluray-devel
mailing list