Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log loaded extensions behind PUMA_DEBUG #3020

Closed
dentarg opened this issue Nov 12, 2022 · 1 comment · Fixed by #3036
Closed

Log loaded extensions behind PUMA_DEBUG #3020

dentarg opened this issue Nov 12, 2022 · 1 comment · Fixed by #3036

Comments

@dentarg
Copy link
Member

dentarg commented Nov 12, 2022

Re the 'loaded extensions', maybe something like the below?

Single mode:

* Listening on http://127.0.0.1:40001
* Loaded Extensions:
*     /mnt/c/GitHub/puma/vendor/bundle/ubuntu22/ruby/3.2.0+1/gems/nio4r-2.5.8/lib/nio4r_ext.so
*     /usr/local/lib/ruby/3.2.0+1/x86_64-linux/date_core.so
*     /usr/local/lib/ruby/3.2.0+1/x86_64-linux/enc/encdb.so
*     /usr/local/lib/ruby/3.2.0+1/x86_64-linux/enc/trans/transdb.so
*     /usr/local/lib/ruby/3.2.0+1/x86_64-linux/etc.so
*     /usr/local/lib/ruby/3.2.0+1/x86_64-linux/io/wait.so
*     /usr/local/lib/ruby/3.2.0+1/x86_64-linux/monitor.so
*     /usr/local/lib/ruby/3.2.0+1/x86_64-linux/pathname.so
*     /usr/local/lib/ruby/3.2.0+1/x86_64-linux/socket.so
*     /usr/local/lib/ruby/3.2.0+1/x86_64-linux/stringio.so
Use Ctrl-C to stop

Cluster mode:

[16449] * Listening on http://127.0.0.1:40001
[16449] * Loaded Extensions:
[16449] *     /usr/local/lib/ruby/3.2.0+1/x86_64-linux/date_core.so
[16449] *     /usr/local/lib/ruby/3.2.0+1/x86_64-linux/enc/encdb.so
[16449] *     /usr/local/lib/ruby/3.2.0+1/x86_64-linux/enc/trans/transdb.so
[16449] *     /usr/local/lib/ruby/3.2.0+1/x86_64-linux/etc.so
[16449] *     /usr/local/lib/ruby/3.2.0+1/x86_64-linux/io/wait.so
[16449] *     /usr/local/lib/ruby/3.2.0+1/x86_64-linux/monitor.so
[16449] *     /usr/local/lib/ruby/3.2.0+1/x86_64-linux/pathname.so
[16449] *     /usr/local/lib/ruby/3.2.0+1/x86_64-linux/socket.so
[16449] *     /usr/local/lib/ruby/3.2.0+1/x86_64-linux/stringio.so
[16449] Use Ctrl-C to stop

EDIT: Above were generated without io-wait in Gemfile.lock

Originally posted by @MSP-Greg in #2843 (comment)

@MSP-Greg
Copy link
Member

JFYI, this week I did briefly look for the code that generated this; I couldn't find it. I'll look more this weekend, otherwise may rewrite. Regardless, anyone else can contribute.

jeremyevans added a commit to jeremyevans/puma that referenced this issue Dec 10, 2022
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.

Fixes puma#3020
jeremyevans added a commit to jeremyevans/puma that referenced this issue Dec 10, 2022
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
MSP-Greg pushed a commit to jeremyevans/puma that referenced this issue Dec 11, 2022
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
MSP-Greg pushed a commit to jeremyevans/puma that referenced this issue Dec 13, 2022
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants