Skip to content

Commit

Permalink
Added missing method of logger wrapper for puma (#15640) (#15642)
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)

Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and kaisecheng committed Nov 30, 2023
1 parent be32ecd commit 6d55f26
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions logstash-core/lib/logstash/patches/puma.rb
Original file line number Diff line number Diff line change
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 6d55f26

Please sign in to comment.