X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.db.procore%2Fsrc%2Ffi%2Fvtt%2Fsimantics%2Fprocore%2Finternal%2FSessionImplSocket.java;fp=bundles%2Forg.simantics.db.procore%2Fsrc%2Ffi%2Fvtt%2Fsimantics%2Fprocore%2Finternal%2FSessionImplSocket.java;h=aff219622d6b91254823d1b8fcad7df722749429;hb=0837081ba3e7bd690e1663bd1578b8f8848d4e86;hp=d32c066bcdfc9bee732cd6ecf3829b5b0eb7a9a1;hpb=5825284fd6530d5c4e983bf611ac7c3a9e584c9f;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/SessionImplSocket.java b/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/SessionImplSocket.java index d32c066bc..aff219622 100644 --- a/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/SessionImplSocket.java +++ b/bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/SessionImplSocket.java @@ -1345,7 +1345,7 @@ public abstract class SessionImplSocket implements Session, WriteRequestSchedule } catch (Throwable e) { - e.printStackTrace(); + LOGGER.error("Could not perform write only for request {}", request, e); releaseWriteOnly(writeState.getGraph()); @@ -2671,7 +2671,7 @@ public abstract class SessionImplSocket implements Session, WriteRequestSchedule // Serialize as '_' return "" + r + "_" + getCluster(resourceImpl); } catch (Throwable e) { - e.printStackTrace(); + LOGGER.error("Could not create random access id for resource {}", resource, e); throw new InvalidResourceReferenceException(e); } finally { } @@ -2719,7 +2719,7 @@ public abstract class SessionImplSocket implements Session, WriteRequestSchedule } catch (NumberFormatException e) { throw new InvalidResourceReferenceException(e); } catch (Throwable e) { - e.printStackTrace(); + LOGGER.error("Could not get resource for randomAccessId {}", randomAccessId, e); throw new InvalidResourceReferenceException(e); } finally { } @@ -3462,7 +3462,7 @@ public abstract class SessionImplSocket implements Session, WriteRequestSchedule } } catch (InterruptedException e) { - e.printStackTrace(); + LOGGER.error("Acquiring was interrupted", e); // FIXME: Should perhaps do something else in this case ?? } }