Commit f68940d8 authored by Petri Hintukainen's avatar Petri Hintukainen

Use logger

parent 5df9e3d6
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment