From 78cc65f88b57af90a06fea4335294d8d33711d44 Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 4 Sep 2002 16:38:28 +0000 Subject: [PATCH] req may have been unset in recycle() by the time we reach the catch clause, so use the current thread for debugging output. --- src/helma/framework/core/RequestEvaluator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helma/framework/core/RequestEvaluator.java b/src/helma/framework/core/RequestEvaluator.java index 0c1b7019..c90eb6be 100644 --- a/src/helma/framework/core/RequestEvaluator.java +++ b/src/helma/framework/core/RequestEvaluator.java @@ -286,7 +286,7 @@ public final class RequestEvaluator implements Runnable { 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 if (app.debug) { ((Transactor) Thread.currentThread ()).timer.dump (System.err); @@ -599,7 +599,7 @@ public final class RequestEvaluator implements Runnable { public synchronized void stopThread () { app.logEvent ("Stopping Thread "+rtx); Transactor t = rtx; - // let the scripting engine know that the + // let the scripting engine know that the // current transaction is being aborted. scriptingEngine.abort (); rtx = null;