mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
Fix NoMethodError when Stack Trace is empty
Adds :traces to hash even if traces are empty. Fixes #7174 Fixes #7175
This commit is contained in:
parent
c3df20b7cf
commit
7537b62c8d
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class HotThreadsReport
|
|||
_hash["thread.stacktrace"].each do |trace|
|
||||
traces << trace
|
||||
end
|
||||
thread[:traces] = traces unless traces.empty?
|
||||
thread[:traces] = traces
|
||||
hash[:threads] << thread
|
||||
end
|
||||
{ :hot_threads => hash }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue