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
parent
91cc9dc2d6
commit
38fbbdc1b5
|
@ -99,7 +99,12 @@ class ThreadManager < Array
|
|||
begin
|
||||
argv.shift.call(*argv)
|
||||
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")}")
|
||||
raise e
|
||||
ensure
|
||||
|
|
Loading…
Reference in New Issue