]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.project/src/org/simantics/project/impl/Project.java
Replace e.printStackTrace() with LOGGER in o.s.p.impl.Project.java
[simantics/platform.git] / bundles / org.simantics.project / src / org / simantics / project / impl / Project.java
index 7d507bbb2e37970088e14a329ab2f1d3c7267209..dc4f5194a4a2c7c59c485a70f9a1c2b77c36bb57 100644 (file)
@@ -34,6 +34,8 @@ import org.simantics.utils.datastructures.disposable.IDisposeListener;
 import org.simantics.utils.datastructures.hints.HintContext;
 import org.simantics.utils.threads.IThreadWorkQueue;
 import org.simantics.utils.threads.SyncListenerList;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 
 /**
@@ -41,6 +43,8 @@ import org.simantics.utils.threads.SyncListenerList;
  */
 public class Project extends HintContext implements IProject {
 
+    private static final Logger LOGGER = LoggerFactory.getLogger(Project.class);
+
     private static IProjectFeature[]          NONE         = {};
 
     //private static final String               TAG_PROJECTS = "projects";
@@ -75,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();
         }
@@ -120,6 +123,7 @@ public class Project extends HintContext implements IProject {
                 IProjectFeature feature = inactiveFeatures.getFirst();
                 boolean success = false;
                 try {
+                    LOGGER.info("Configuring project feature {}", feature);
                     feature.setProjectElement(this);
                     feature.configure();