req may have been unset in recycle() by the time we reach the catch clause,

so use the current thread for debugging output.
This commit is contained in:
hns 2002-09-04 16:38:28 +00:00
parent 9c8c460355
commit 78cc65f88b

View file

@ -286,7 +286,7 @@ public final class RequestEvaluator implements Runnable {
abortTransaction (false); abortTransaction (false);
app.logEvent ("### Exception in "+app.getName()+"/"+req.path+": "+x); app.logEvent ("### Exception in "+Thread.currentThread()+": "+x);
// Dump the profiling data to System.err // Dump the profiling data to System.err
if (app.debug) { if (app.debug) {
((Transactor) Thread.currentThread ()).timer.dump (System.err); ((Transactor) Thread.currentThread ()).timer.dump (System.err);
@ -599,7 +599,7 @@ public final class RequestEvaluator implements Runnable {
public synchronized void stopThread () { public synchronized void stopThread () {
app.logEvent ("Stopping Thread "+rtx); app.logEvent ("Stopping Thread "+rtx);
Transactor t = rtx; Transactor t = rtx;
// let the scripting engine know that the // let the scripting engine know that the
// current transaction is being aborted. // current transaction is being aborted.
scriptingEngine.abort (); scriptingEngine.abort ();
rtx = null; rtx = null;