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

Make it easier to capture stderr #2

Open
earthboundkid opened this issue Nov 17, 2016 · 3 comments
Open

Make it easier to capture stderr #2

earthboundkid opened this issue Nov 17, 2016 · 3 comments

Comments

@earthboundkid
Copy link

From the README, to capture stderr, you need to do:

$/etc/myapp/bin 2>&1 | funnel

What if instead you could do: funnel -cmd '/etc/myapp/bin'? Then it could capture all stdout and stderr on its own.

@agnivade
Copy link
Owner

Not bad :) I guess its a matter of aesthetics. And also, since anyway its collating both stdout and stderr in a single stream, it doesn't matter much.

However, I have a feeling there might be requests to capture stdout and stderr separately in the future. I will keep this in the backburner.

@flowchartsman
Copy link

I don't think this is the right move. The SOP in System V and upstart scripts is to start the service with output redirection. It keeps the process tree clean and makes using flags and piping cleaner and easier to read.

@agnivade
Copy link
Owner

Right, I am a fan of piping too. It feels like the natural unix approach.

Its just that a few people have raised the concern that it should capture from stdout and stderr both by default (i.e. without doing any redirection). This issue is just to track that in case it becomes a big pain point. And its great that we have opinions from both sides of the table. Allows people to know the tradeoffs :)

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

3 participants