Print tm_call one caller per line

MSP-9653

The inspect format was difficult to read so convert to standard
backtrace format of one caller per line.
bug/bundler_fix
Luke Imhoff 2014-05-20 10:59:29 -05:00
parent 91cc9dc2d6
commit 38fbbdc1b5
No known key found for this signature in database
GPG Key ID: 5B1FB01FB33356F8
1 changed files with 6 additions and 1 deletions

View File

@ -99,7 +99,12 @@ class ThreadManager < Array
begin begin
argv.shift.call(*argv) argv.shift.call(*argv)
rescue ::Exception => e rescue ::Exception => e
elog("thread exception: #{::Thread.current[:tm_name]} critical=#{::Thread.current[:tm_crit]} error:#{e.class} #{e} source:#{::Thread.current[:tm_call].inspect}") elog(
"thread exception: #{::Thread.current[:tm_name]} critical=#{::Thread.current[:tm_crit]} " \
"error: #{e.class} #{e}\n" \
" source:\n" \
" #{::Thread.current[:tm_call].join "\n "}"
)
elog("Call Stack\n#{e.backtrace.join("\n")}") elog("Call Stack\n#{e.backtrace.join("\n")}")
raise e raise e
ensure ensure