Add logging by default to adapters exception-methods
[simantics/platform.git] / bundles / org.simantics.db.common / src / org / simantics / db / common / procedure / adapter / AsyncSetListenerAdapter.java
index 44bbfc02a8ff2ef306aa3bdf14a7f20d12a910f5..3cf03ed16ee3c7149f1451c778b82749f8281052 100644 (file)
@@ -13,11 +13,13 @@ package org.simantics.db.common.procedure.adapter;
 
 import org.simantics.db.AsyncReadGraph;
 import org.simantics.db.procedure.AsyncSetListener;
+import org.slf4j.LoggerFactory;
 
 public abstract class AsyncSetListenerAdapter<T> implements AsyncSetListener<T> {
 
     @Override
     public void exception(AsyncReadGraph graph, Throwable t) {
+        LoggerFactory.getLogger(getClass()).error("Failed to listen", t);
     }
 
     @Override