Skip to content

Commit 9b16954

Browse files
SilverDavmmoqui
authored andcommitted
Bug #14720: PK of the node is now displayed in the error log
1 parent ba489ab commit 9b16954

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kmelia/kmelia-war/src/main/java/org/silverpeas/components/kmelia/web/FolderResource.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import org.silverpeas.core.webapi.node.NodeAttrEntity;
3737
import org.silverpeas.core.webapi.node.NodeEntity;
3838
import org.silverpeas.core.webapi.node.NodeType;
39+
import org.silverpeas.kernel.logging.SilverLogger;
3940

4041
import javax.annotation.Nonnull;
4142
import javax.ws.rs.Consumes;
@@ -289,6 +290,7 @@ public NodeEntity getTreeview(@PathParam("path") String path, @QueryParam("lang"
289290

290291
return rootEntity;
291292
} catch (Exception e) {
293+
SilverLogger.getLogger(this).error("Error in getTreeview()",e);
292294
throw new WebApplicationException(e, Status.INTERNAL_SERVER_ERROR);
293295
}
294296
}

0 commit comments

Comments
 (0)