Add logging by default to adapters exception-methods
[simantics/platform.git] / bundles / org.simantics.db.common / src / org / simantics / db / common / procedure / adapter / SetListenerAdapter.java
index 2e306927143c7108fe9d92a42cf73b831174e32e..442a73bed91f76cc6821d67027a5be673dff5131 100644 (file)
 package org.simantics.db.common.procedure.adapter;
 
 import org.simantics.db.procedure.SetListener;
+import org.slf4j.LoggerFactory;
 
 public abstract class SetListenerAdapter<T> implements SetListener<T> {
 
     @Override
     public void exception(Throwable t) {
+        LoggerFactory.getLogger(getClass()).error("Failed to listen", t);
     }
 
     @Override