Skip to content

Commit

Permalink
Debug print loaded extensions if PUMA_DEBUG is set
Browse files Browse the repository at this point in the history
Not sure if this is the best place for it, but trying to move it
to a separate method seemed challenging as this appears to be
called for multiple places.

Closes puma#3020
  • Loading branch information
jeremyevans authored and MSP-Greg committed Dec 11, 2022
1 parent 7b63010 commit e0b785e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/puma/binder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,9 @@ def parse(binds, log_writer = nil, log_msg = 'Listening')
File.unlink key[1] if key.first == :unix
end
end

log_writer.debug("Loaded Extensions:")
$LOADED_FEATURES.grep(/\.(so|dylib|dll)/i).each { |f| log_writer.debug(" #{f}") }
end

def localhost_authority
Expand Down

0 comments on commit e0b785e

Please sign in to comment.