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

SOLR-17429, SOLR-17338: Use stderr for SolrCLI deprecation logs #2679

Merged
merged 6 commits into from
Aug 30, 2024

Conversation

HoustonPutman
Copy link
Contributor

Tools that parse the output of the Solr CLI will be broken with the new deprecation notices. Moving the deprecation notices to stderr instead of stdout will fix this.

Unfortunately we can't make the Deprecation Handler:

o -> System.err.println(o.toDeprecatedString())

because Option.toDeprecatedString() is package protected for some reason. Because of this, I've basically copied the method until a release of CommonsCLI will make that method public. (or even make stderr the default, which it likely should be)

@HoustonPutman HoustonPutman changed the title Use stderr for SolrCLI deprecation logs SOLR-17429: Use stderr for SolrCLI deprecation logs Aug 29, 2024
@HoustonPutman HoustonPutman changed the title SOLR-17429: Use stderr for SolrCLI deprecation logs SOLR-17429, SOLR-17338: Use stderr for SolrCLI deprecation logs Aug 30, 2024
@HoustonPutman HoustonPutman merged commit 26d00c3 into apache:main Aug 30, 2024
4 checks passed
@HoustonPutman HoustonPutman deleted the cli-deprecated-stderr branch August 30, 2024 18:13
HoustonPutman added a commit that referenced this pull request Aug 30, 2024
HoustonPutman added a commit that referenced this pull request Aug 30, 2024
patsonluk pushed a commit to cowpaths/fullstory-solr that referenced this pull request Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant