X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.ui%2Fsrc%2Forg%2Fsimantics%2Fui%2Fworkbench%2FWorkbenchShutdownServiceImpl.java;h=9cba52a3713a77faf198284cca2b614f689c576b;hp=6a1b2c027165154ffdd23f6e031c52589fe14427;hb=1dfeb7d5c49b1391cd9d877e1eddab18995cb151;hpb=c13c4179bda758e77fe1f2032d3c4268bb9e3120 diff --git a/bundles/org.simantics.ui/src/org/simantics/ui/workbench/WorkbenchShutdownServiceImpl.java b/bundles/org.simantics.ui/src/org/simantics/ui/workbench/WorkbenchShutdownServiceImpl.java index 6a1b2c027..9cba52a37 100644 --- a/bundles/org.simantics.ui/src/org/simantics/ui/workbench/WorkbenchShutdownServiceImpl.java +++ b/bundles/org.simantics.ui/src/org/simantics/ui/workbench/WorkbenchShutdownServiceImpl.java @@ -17,12 +17,15 @@ import java.util.List; import org.osgi.framework.BundleContext; import org.osgi.framework.ServiceRegistration; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * @author Tuukka Lehtonen */ public class WorkbenchShutdownServiceImpl implements WorkbenchShutdownService { + private static final Logger LOGGER = LoggerFactory.getLogger(WorkbenchShutdownServiceImpl.class); private static ServiceRegistration service = null; private final List hooks = new ArrayList(); @@ -72,8 +75,7 @@ public class WorkbenchShutdownServiceImpl implements WorkbenchShutdownService { } protected void handleException(Object source, Throwable t) { - System.err.println(getClass().getSimpleName() + ": workbench shutdown hook " + source + " caused unexpected exception:"); - t.printStackTrace(); + LOGGER.error(getClass().getSimpleName() + ": workbench shutdown hook " + source + " caused unexpected exception:", t); } }