burke / zeus

Boot any rails app in under a second.
MIT License
3.33k stars 231 forks source link

Log "can't connect to master" into the STDERR #612

Closed bogdan closed 7 years ago

bogdan commented 7 years ago

When the zeus server is not started. the following command:

$ zeus rake routes | grep <something>

Produces no output as if there is just no such route defined, but it is just because server is not started.

Please put Can't connect to master. Run zeus start first. into STDERR so that it is always displayed in spite of grep.

sideshowcoder commented 7 years ago

This is related to #336 currently there is only one stream for stderr and stdout. Something I wanted to tackle some time ago, got distracted, forgot and now annoys me again...

bogdan commented 7 years ago

Maybe this is not related as the problem here occurs in zeus code but not in the environment made by zeus for ruby.

sideshowcoder commented 7 years ago

Oh yes I missunderstood what you ment sorry about this, I created a quick PR #614 to fix this and I'm wondering if there are more errors which should be logged to stderr now created by zeus.