import org.simantics.db.adaption.Adapter;
import org.simantics.db.adaption.AdapterInstaller;
import org.simantics.db.adaption.AdaptionService;
-import org.simantics.db.common.request.ReadRequest;
import org.simantics.db.exception.DatabaseException;
import org.simantics.db.request.Read;
import org.simantics.db.services.adaption.reflection.AdaptingDynamicAdapter2;
}
private static void handleException(Exception e, String fileName) {
- System.err.println("At " + fileName);
- e.printStackTrace();
+ LOGGER.error("At {}", fileName, e);
}
private void handleException(Exception e, AdapterInstaller installer) {
String desc = installerSources.get(installer);
- if (desc != null)
- System.err.println("At " + desc);
- e.printStackTrace();
+ LOGGER.error("At {}, installer {}", desc, installer, e);
}
private void handleAdaptersDocument(Loader b, Document doc, String fileName) {
}, fileName);
} catch (Exception e) {
- e.printStackTrace();
handleException(e, fileName);
}
}