https://bz.apache.org/bugzilla/show_bug.cgi?id=63879
--- Comment #9 from Steve Sanders <stevesander...@gmail.com> --- (In reply to Christopher Schultz from comment #8) > (In reply to Michael Bazos from comment #6) > > I agree switching to TRACE is the best option. Also it might be helpful to > > not throw new Exception() > > Note that the exception is not thrown, only constructed. Yes, this requires > the runtime to walk the the stack to produce the stack trace (Which is > precisely why it's being done at all) but we don't incur the penalty of > actually throwing the exception. > > > this produces this message > > "java.lang.Exception: null" If you are going to have this it might be best > > to provide a message to let people know this is intended and testing. > > +1 to adding a message e.g. new Exception("Intentional stack trace") Good idea! I've updated my patch to use isTraceEnabled, and added the exception message. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org