Details
-
Improvement
-
Resolution: Won't Fix
-
Trivial - P5
-
None
-
6.0.5, 4.4.20, 5.0.16
-
None
-
None
-
Query Optimization
-
(copied to CRM)
Description
To view the profiling level we need to issue the following from mongosh:
db.getProfilingStatus()
|
The shell returns a document similar to the following:
{ "was" : 0, "slowms" : 100, "sampleRate" : 1.0, "ok" : 1 } |
The was field indicates the current profiling level, which is confusing and makes users think it is showing the previous level of profiling since it uses past tense.