mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
parent
51de4c2674
commit
32c306f28f
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ module LogStash::Util
|
||||||
def self.thread_info(thread)
|
def self.thread_info(thread)
|
||||||
# When the `thread` is dead, `Thread#backtrace` returns `nil`; fall back to an empty array.
|
# When the `thread` is dead, `Thread#backtrace` returns `nil`; fall back to an empty array.
|
||||||
backtrace = (thread.backtrace || []).map do |line|
|
backtrace = (thread.backtrace || []).map do |line|
|
||||||
line.gsub(LogStash::Environment::LOGSTASH_HOME, "[...]")
|
line.sub(LogStash::Environment::LOGSTASH_HOME, "[...]")
|
||||||
end
|
end
|
||||||
|
|
||||||
blocked_on = case backtrace.first
|
blocked_on = case backtrace.first
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue