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

Running thin behind a pipe doesn't show messages #371

Open
rp-pedraza opened this issue Sep 24, 2020 · 4 comments
Open

Running thin behind a pipe doesn't show messages #371

rp-pedraza opened this issue Sep 24, 2020 · 4 comments

Comments

@rp-pedraza
Copy link

I'm trying to merge thin's output with another static auto-builder command using parallel --line-buffer ::: 'thin ...' 'another command' and I'm not seeing thin's messages. Is it perhaps buffered?

thin ... | cat doesn't show anything either but I can verify that server is running well with the browser.

@rp-pedraza
Copy link
Author

Tested this with 1.7.2 and a65c608.

@ioquatix
Copy link
Collaborator

Is it printing to stdout or stderr?

@rp-pedraza
Copy link
Author

Is it printing to stdout or stderr?

It prints messages normally while not being piped. But if I append | cat there's nothing. However if I force to run it in an invalid directory it does produce stderr errors. I can't tell if the error messages are just shown after the buffer is flushed in exit.

@ioquatix
Copy link
Collaborator

ioquatix commented Nov 3, 2020

It sounds like logging is going to stderr. Well, if you want to submit a PR to fix this, it would be welcome.

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

2 participants