]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Replace e.printStackTrace() with LOGGER in o.s.p.impl.Project.java 11/3611/1
authorjsimomaa <jani.simomaa@gmail.com>
Mon, 25 Nov 2019 06:58:58 +0000 (08:58 +0200)
committerjsimomaa <jani.simomaa@gmail.com>
Mon, 25 Nov 2019 06:58:58 +0000 (08:58 +0200)
gitlab #423

Change-Id: I3af88754bcca016c900a84c534fb62e612f408bc

bundles/org.simantics.project/src/org/simantics/project/impl/Project.java

index 1a4e9f6878234a7cbd78661098e4608de6e447fb..dc4f5194a4a2c7c59c485a70f9a1c2b77c36bb57 100644 (file)
@@ -79,9 +79,8 @@ public class Project extends HintContext implements IProject {
 
             featureSet.clear();
             features = NONE;
-        } catch (ProjectException e1) {
-            // TODO: do something more sensible than print the possible exception!
-            e1.printStackTrace();
+        } catch (ProjectException e) {
+            LOGGER.error("Could not dispose Project {}", this, e);
         } finally {
             lock.unlock();
         }