Stop the stopwatch.
This method ends a new timing session, allowing the time to be retrieved.
151152153154155156157158159160161
if( this.getLogger().isErrorEnabled() ) { if( this.isMonitorAllExceptions() || this.isServiceMonitored(interceptorContext) ) { StopWatch stopWatch = this.getStopWatch(interceptorContext); stopWatch.stop(); String msg = this.toString(interceptorContext, stopWatch, t); this.getLogger().error(msg); } } }
168169170171172173174175176177178
if( this.isServiceMonitored(interceptorContext) ) { if( this.getLogger().isDebugEnabled() ) { StopWatch stopWatch = this.getStopWatch(interceptorContext); stopWatch.stop(); String msg = this.toString(interceptorContext, stopWatch, result); this.getLogger().debug(msg); } } }
116117118119120121122123124125126
public void onError(AvalonInterceptorContext interceptorContext,Throwable t) { if( this.isServiceMonitored(interceptorContext) ) { StopWatch stopWatch = this.getStopWatch(interceptorContext); stopWatch.stop(); this.log( ON_ERROR, interceptorContext, stopWatch ); } } /**
131132133134135136137138139140141
if( this.isServiceMonitored(interceptorContext) ) { if( this.isServiceMonitored(interceptorContext) ) { StopWatch stopWatch = this.getStopWatch(interceptorContext); stopWatch.stop(); this.log( ON_EXIT, interceptorContext, stopWatch ); } } }