when setProfilingLevel is executed it returns something like
{
"was" : 2,
"slowms" : 100,
"sampleRate" : 1,
"filter" : {
"$and" : [
{
"op" : {
"$eq" : "query"
}
},
{
"millis" : {
"$gt" : 20000
}
}
]
},
"note" : "When a filter expression is set, slowms and sampleRate are not used for profiling and slow-query log lines.",
"ok" : 1
}
If you clear the terminal or forgot to check the value of was
how can you revert to the previous value?
Is there some sort of history for Profiling Level?