-
Type: Improvement
-
Resolution: Won't Fix
-
Priority: Trivial - P5
-
None
-
Affects Version/s: 6.0.5, 4.4.20, 5.0.16
-
Component/s: None
-
None
-
Query Optimization
-
(copied to CRM)
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.