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
  • Loading branch information
kaisecheng committed Nov 30, 2023
1 parent 5543e3c commit 05392ad
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 05392ad

Please sign in to comment.