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

reduce system log output inside function #9

Open
rabbah opened this issue Jul 30, 2018 · 6 comments
Open

reduce system log output inside function #9

rabbah opened this issue Jul 30, 2018 · 6 comments

Comments

@rabbah
Copy link
Member

rabbah commented Jul 30, 2018

@remore is it possible to suppress this output?

Puma starting in single mode...
* Version 3.12.0 (ruby 2.5.1-p57), codename: Llamas in Pajamas
* Min threads: 0, max threads: 16
* Environment: development
* Listening on tcp://0.0.0.0:8080
Use Ctrl-C to stop
@remore
Copy link
Contributor

remore commented Jul 31, 2018

@rabbah
Copy link
Member Author

rabbah commented Jul 31, 2018

It bleeds through the webserver elements underlying the function. It would be nice to eschew as such. What about using redirectio to send the log output to dev null at startup at least? I see there’s an option to redirect but didn’t check if the phase ordering works.

@remore
Copy link
Contributor

remore commented Aug 1, 2018

Although technically it’s not a difficult issue, but give me some more time to think about it. Now I see the situation and am still trying to figure out the best option among a few possibilities to workaround this. (Yes redirectio could be a workaround but need to check the behavior. I’m suspecting it might be hard to call #redirect_io method of underlying puma webserver from inside Rack application code. Anyways I will check this first later.)

@rabbah
Copy link
Member Author

rabbah commented Aug 1, 2018

Thanks for giving it some thought.

@csantanapr
Copy link
Member

@remore any update on this.

@jthomas any ideas?

@jthomas
Copy link
Member

jthomas commented Nov 2, 2018

@csantanapr whatever @remore says :) I'm not the Ruby person....

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

4 participants