-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: manual
-
Labels:
-
0.5
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=
}}
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