-
Improvement
-
Resolution: Won't Fix
-
Neutral
-
5.0
-
None
The getNode and getNodeByIdentifier methods of the info.magnolia.jcr.util.SessionUtil class return null if the requested node is not found, but they use log.error() in such case. It does not make much sense from a developer's point of view, just pollutes the logs with unnecessary stack traces.
The solution should be either to decrease the logging level to log.debug(), or at least catch the PathNotFoundException first and use the log.debug() for it (without stack trace), and use log.error() only for other kinds of the RepositoryException.
Acceptance criteria
- duplicates
-
MAGNOLIA-4999 SessionUtil#getNode(String, String) should avoid internal PathNotFoundException
- Closed