|
Debugging commands occasionally requires increased verbosity, however increasing this at the node level can generate a lot of noise. This feature would allow any command to accept an optional logLevel parameter, similar to how comments were added to all commands via SERVER-29794.
Changing the log level can only be done via the logComponentVerbosity or logLevel server parameters, which are unavailable in managed environments (ex: MongoDB Atlas).
For example:
db.runCommand({
|
find: "foo",
|
filter: { bar: { $exists: true } },
|
logLevel: {
|
verbosity: <int>,
|
<component1>: { verbosity: <int> },
|
<component2>: {
|
verbosity: <int>,
|
<component3>: { verbosity: <int> }
|
},
|
...
|
}
|
batchSize: 1000
|
});
|
|