]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.common/src/org/simantics/db/common/request/PropertyMapOfResource.java
Utilize slf4j
[simantics/platform.git] / bundles / org.simantics.db.common / src / org / simantics / db / common / request / PropertyMapOfResource.java
index 5a92ef62c894717a878058bcdfe9d1eb8757f318..1d06cc33d4c38ea4980b0089bdee0982c62cc0f4 100644 (file)
@@ -22,9 +22,13 @@ import org.simantics.db.ReadGraph;
 import org.simantics.db.Resource;\r
 import org.simantics.db.exception.DatabaseException;\r
 import org.simantics.layer0.Layer0;\r
+import org.slf4j.Logger;\r
+import org.slf4j.LoggerFactory;\r
 \r
 public class PropertyMapOfResource extends ResourceRead<Map<String, Resource>> {\r
 \r
+    private static final Logger LOGGER = LoggerFactory.getLogger(PropertyMapOfResource.class);\r
+\r
        public PropertyMapOfResource(Resource resource) {\r
            super(resource);\r
        }\r
@@ -41,7 +45,7 @@ public class PropertyMapOfResource extends ResourceRead<Map<String, Resource>> {
                        if(name != null) {\r
                                        String escapedName = URIStringUtils.escape(name); \r
                            if (result.put(escapedName, predicate) != null)\r
-                               System.err.println(this + ": The database contains siblings with the same name " + name + " (resource=$" + resource.getResourceId() +").");\r
+                               LOGGER.error("The database contains siblings with the same name " + name + " (resource=$" + resource.getResourceId() +").");\r
                        }\r
                        }                               \r
                }\r