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

Application load errors are lost when run in daemon mode #285

Closed
mkwiatkowski opened this issue Jun 19, 2013 · 0 comments
Closed

Application load errors are lost when run in daemon mode #285

mkwiatkowski opened this issue Jun 19, 2013 · 0 comments

Comments

@mkwiatkowski
Copy link

Minimal example:

# config.ru
problem
# puma-config.rb
pidfile 'tmp/puma.pid'
state_path 'tmp/puma.state'
stdout_redirect 'log/puma.stdout', 'log/puma.stderr'

When run without -d option application error is logged to stderr.

$ puma -C puma-config.rb 
Puma 2.1.0 starting...
* Min threads: 0, max threads: 16
* Environment: development
* Listening on tcp://0.0.0.0:9292
config.ru:4:in `block in <main>': undefined local variable or method `problem' for #<Rack::Builder:0xa22c6f8 @map=nil, @run=nil, @use=[]> (NameError)

When run with -d option the application error is lost, neither written to stderr nor to the file specified in stdout_redirect.

In my opinion it should always log the application load errors to the file if stdout_redirect was specified.

Confirmed on current master.

Was mentioned in #253 (comment) by @sabcio.

I will come up with a pull request for this in the next few days.

MSP-Greg added a commit to MSP-Greg/puma that referenced this issue Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant