import org.simantics.scl.compiler.source.PrecompiledModuleSource;
import org.simantics.scl.compiler.source.repository.ModuleSourceRepository;
import org.simantics.scl.runtime.SCLContext;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import gnu.trove.procedure.TObjectProcedure;
public enum OntologyModuleSourceRepository implements ModuleSourceRepository {
INSTANCE;
+
+ private static final Logger LOGGER = LoggerFactory.getLogger(OntologyModuleSourceRepository.class);
static class ModuleSourceRequest extends UnaryRead<String, ModuleSource> {
return Simantics.getSession().syncRequest(new ModuleSourceRequest(moduleName));
} catch(DatabaseException e) {
- e.printStackTrace();
+ LOGGER.error("Failed to read ontology module " + moduleName + ".", e);
return null;
}
}