Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-17429

Find more permanent solution to Deprecated SolrCLI logging

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 9.7
    • None
    • cli

    Description

      Commons CLI now supports deprecated options, and when those options are used, they print a log to the user warning them. Unfortunately, by default, the logging is done to stdout. Tools that use the SolrCLI and parse the output will be broken by this change since they generally always read from stdout. If the logging was done to stderr, there would be no problem since the tools would not read the deprecation logs with the CLI output.

      Either

      • Commons CLI should log deprecations to stderr by default
      • Commons CLI should make Option.toDeprecatedString() public, so that we can more easily make our own DeprecationHandler that merely prints the same thing to stderr. As it is, we have to copy the whole method ourselves since it is package private.

      Attachments

        Issue Links

          Activity

            People

              epugh Eric Pugh
              houston Houston Putman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m