make task exception logs a little more readable.

git-svn-id: file:///home/svn/framework3/trunk@9127 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2010-04-24 18:34:21 +00:00
parent 016ec84531
commit 30b210a896
1 changed files with 3 additions and 1 deletions

View File

@ -198,7 +198,9 @@ class TaskManager
return :drop
end
elog("taskmanager: task triggered an exception: #{e.class} #{e} #{task.inspect} ")
elog("taskmanager: task triggered an exception: #{e.class} #{e}")
elog("taskmanager: task proc: #{task.proc.inspect} ")
elog("taskmanager: task Call stack: #{task.source.join("\n")} ")
dlog("Call stack:\n#{$@.join("\n")}")
task.status = :dropped