Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12633

Bad docs for --setParameter logComponentVerbosity

    XMLWordPrintableJSON

Details

    Description

      Description

      On this page:

      https://docs.mongodb.com/manual/reference/configuration-file-settings-command-line-options-mapping/

      The docs for setting log component verbosity via the command line aren't helpful:
      {{mongod --setParameter"logComponentVerbosity=

      {heartbeats:... }

      }}

      https://docs.mongodb.com/manual/reference/program/mongod/#cmdoption-mongod-setparameter

      mongos --setParameter"logComponentVerbosity={heartbeats:... }

      https://docs.mongodb.com/manual/reference/program/mongos/#cmdoption-mongos-setparameter

       
      The "..." ellipsis doesn't tell me what type of argument to pass, it's not obvious it should be an integer. And the syntax is wrong, it should be:

      mongod --setParameter "logComponentVerbosity={replication:{heartbeats:2"}}

      The "heartbeat" component is part of the "replication" component, so it must be passed as a JSON sub object.

      Scope of changes

      • Update logComponentVerbosity example to the correct syntax
      • Update the other replication.n.verbosity options to have correct syntax
      • Update the storage.n.verbosity options to have correct syntax
      • Test all syntax updates

      Attachments

        Activity

          People

            andrew.feierabend@mongodb.com Andrew Feierabend (Inactive)
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              4 years, 18 weeks ago