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
|
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
|
||||||
|
|
Loading…
Reference in New Issue