On Fri, Mar 27, 2020 at 9:19 AM Martin Grigorov <mgrigo...@apache.org> wrote:
> Hi, > > On Thu, Mar 26, 2020 at 11:23 PM Rémy Maucherat <r...@apache.org> wrote: > >> On Thu, Mar 26, 2020 at 9:16 PM Christopher O'Connell < >> coconnel...@gmail.com> wrote: >> >>> The Tomcat release version 7.0.100 introduced a bug that prevented >>> ServiceLoaders from being started. This was fixed by the ticket: >>> https://bz.apache.org/bugzilla/show_bug.cgi?id=64191 (Thank you for >>> the fix) >>> >>> This problem ended up causing an application I was working on from >>> running correctly. In an attempt to resolve, I tried turning up >>> logging but there does not appear to be any logging in this section of >>> the code, error or otherwise. >>> >>> Would it be possible to add additional logging, specifically in the >>> WebappServiceLoader.java class? I'd be willing to submit code to >>> address this concern. >>> >> >> -1 >> Adding useless verbose logging just to reassure you that there's no bug >> in the container is quite pointless. SCI processing is not something that >> is complex, and if your SCI is found you can log there. >> > > The benefit of having the log statement (as DEBUG) in Tomcat's code base > is that the developer can see all SCI impls being used in the application, > not just "mine SCI". > And often "mine SCI" is not really mine but provided by some web framework > like Spring MVC, RestEasy, etc. If those have their own log statements then > I could enable them one by one. But it is possible that they won't have > such too. > Is there any harm of having such log statement in Tomcat ? It loads those > classes at application start time so it is not a hot path. > Right, so I don't like a "No SCI found in JAR [{0}]" log, it doesn't sound very useful. Then the log "SCI found in JAR [{0}]" is better, but since the SCI of the user is then run I suppose it's not that useful either. Also, this is about adding a log to debug a bug in Tomcat that is now fixed so it's pointless. The person should submit a test case instead, this is a more efficient way to make sure complex SCI problems don't occur again. Rémy > > My 2c. > Martin > > >> >> Rémy >> >> >>> >>> Thanks, >>> >>> Chris >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org >>> For additional commands, e-mail: dev-h...@tomcat.apache.org >>> >>>