gitlab #381
Change-Id: I7bf72f047a24932e3dbc4fd48781bad0f879a472
import org.simantics.simulation.ontology.HistoryResource;
import org.simantics.simulation.ontology.SimulationResource;
import org.simantics.utils.FileUtils;
import org.simantics.simulation.ontology.HistoryResource;
import org.simantics.simulation.ontology.SimulationResource;
import org.simantics.utils.FileUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import gnu.trove.map.TObjectLongMap;
import gnu.trove.map.hash.TObjectLongHashMap;
import gnu.trove.map.TObjectLongMap;
import gnu.trove.map.hash.TObjectLongHashMap;
*/
public class HistoryUtil {
*/
public class HistoryUtil {
+ private static final Logger LOGGER = LoggerFactory.getLogger(HistoryUtil.class);
+
private static final boolean DEBUG = false;
private static final boolean PROFILE = true;
private static final boolean DEBUG = false;
private static final boolean PROFILE = true;
try (RandomAccessBinary rab = new BinaryFile(path.toFile())) {
importHistoryArchive(history, rab, result);
return result;
try (RandomAccessBinary rab = new BinaryFile(path.toFile())) {
importHistoryArchive(history, rab, result);
return result;
+ } catch (IOException e) {
+ LOGGER.error("Failed to import history from archive {}", path);
+ throw e;