stefan-egli opened a new pull request #2: URL: https://github.com/apache/sling-org-apache-sling-discovery-oak/pull/2
When resourceResolverFactory is deactivated we have seen some noisy log messages, including lengthy stack traces. While what these logs report is legitimate, we should log less noisy as the unregistration of resourceResolverFactory is non trivial and slightly non-osgiy. This PR suggests to lower to warn from error, and not include the stack trace. If one is interested in the stack trace for debugging, the log level can be set to DEBUG and then the stack trace will be included (while the log level it prints will stay at WARN). Additionally, as part of this PR, the pom had to be slightly brushed up to work with java 11. The changes were kept at a minimum though, since switching to parent 41 would involve switching away from felix scr to osgi scr annotations. That should be done in a separate task. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org