Skip to content

Commit

Permalink
Added missing method of logger wrapper for puma (#15640)
Browse files Browse the repository at this point in the history
This commit fixes no method error when node stats API got
invalid API path, which triggers puma to print error using stderr

Fix: #15639
(cherry picked from commit 05392ad)
  • Loading branch information
kaisecheng authored and logstashmachine committed Nov 30, 2023
1 parent be32ecd commit d2a9aa8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions logstash-core/lib/logstash/patches/puma.rb
Expand Up @@ -126,6 +126,10 @@ def unknown_error(error, req = nil, text = "Unknown error")
def debug_error(error, req = nil, text = "")
@logger.debug(text, { error: error, req: req, backtrace: error&.backtrace }) if @logger.debug?
end

def debug?
@logger.debug?
end
end
end

Expand Down

0 comments on commit d2a9aa8

Please sign in to comment.