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

testserver: look for sql url on stderr #29

Closed
wants to merge 1 commit into from
Closed

Conversation

benesch
Copy link
Contributor

@benesch benesch commented May 3, 2017

The latest version of CockroachDB prints the SQL url on stderr instead of stdout when --logtostderr is specified.

@knz, I know you've been working on the logging recently. Let me know if this change wasn't intentional (i.e., if the SQL url should still be printed on stdout when --logtostderr is passed).


This change is Reviewable

The latest version of CockroachDB prints the SQL url on stderr instead
of stdout when --logtostderr is specified.
@benesch benesch requested review from knz and tamird May 3, 2017 05:20
@knz
Copy link
Contributor

knz commented May 3, 2017

The change here comes from cockroachdb/cockroach#15597

The complaint (from Alex, Andrei) was that the node startup message with this info was printed both on stdout and stderr when --logtostderr is enabled.

The reasoning behind was that 1) the startup message must be copied to the logs always (for later investigation) and 2) for consistency it would be strange to have different logging output depending on whether --logtostderr is set

So I decided to not place it to stdout any more, but now your issue highlights that this may have been the wrong call -- perhaps stdout is the right place after all?
Suggestions welcome.

benesch added a commit that referenced this pull request May 3, 2017
Use the new `--listening-url-file` flag to specify a file in which the
SQL URL will be written. This flag was added in
cockroachdb/cockroach#15468 for exactly this purpose, and makes this
testserver resilient to changes in what log output is printed where.
Closes #29.
@benesch
Copy link
Contributor Author

benesch commented May 3, 2017

I found a better way; submitted as #30.

@benesch benesch closed this May 3, 2017
benesch added a commit that referenced this pull request May 3, 2017
Use the new `--listening-url-file` flag to specify a file in which the
SQL URL will be written. This flag was added in
cockroachdb/cockroach#15468 for exactly this purpose, and makes this
testserver resilient to changes in what log output is printed where.
Closes #29.
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

Successfully merging this pull request may close these issues.

3 participants