Skip to content

Commit

Permalink
Refactor: minor one sub-stitution should do
Browse files Browse the repository at this point in the history
Fixes #11458
  • Loading branch information
kares committed Dec 30, 2019
1 parent 57facfd commit 598e75a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logstash-core/lib/logstash/util.rb
Expand Up @@ -46,7 +46,7 @@ def self.get_thread_id(thread)
def self.thread_info(thread)
# When the `thread` is dead, `Thread#backtrace` returns `nil`; fall back to an empty array.
backtrace = (thread.backtrace || []).map do |line|
line.gsub(LogStash::Environment::LOGSTASH_HOME, "[...]")
line.sub(LogStash::Environment::LOGSTASH_HOME, "[...]")
end

blocked_on = case backtrace.first
Expand Down

0 comments on commit 598e75a

Please sign in to comment.