diff options
author | Gabriel Russell <gabriel.russell@mongodb.com> | 2020-06-05 15:51:51 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-06-10 22:15:48 +0000 |
commit | 6f78f6559b8aadb6ec1865fabfb93d7b2736ae92 (patch) | |
tree | 6e9ce4f6961a1e235f1eb3b18083ff18f0cdb2b5 /src/mongo/scripting/mozjs/implscope.cpp | |
parent | 16008228ec1ce35dc7979c4ccc0af6dc9b375988 (diff) | |
download | mongo-6f78f6559b8aadb6ec1865fabfb93d7b2736ae92.tar.gz |
SERVER-48352 logv2 cleanup for scripting/mozjs, shell/
o also, deduplicated the example log id's in src/mongo/logv2/README.md
even though they were just examples, it was funny that there werre not
unique
Diffstat (limited to 'src/mongo/scripting/mozjs/implscope.cpp')
-rw-r--r-- | src/mongo/scripting/mozjs/implscope.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/mongo/scripting/mozjs/implscope.cpp b/src/mongo/scripting/mozjs/implscope.cpp index 6ed2263cf88..3834fff7629 100644 --- a/src/mongo/scripting/mozjs/implscope.cpp +++ b/src/mongo/scripting/mozjs/implscope.cpp @@ -239,12 +239,10 @@ void MozJSImplScope::_gcCallback(JSContext* rt, JSGCStatus status, void* data) { } LOGV2_INFO(22787, - "MozJS GC {status_JSGC_BEGIN_prologue_epilogue} heap stats - total: " - "{mongo_sm_get_total_bytes} limit: {mongo_sm_get_max_bytes}", - "status_JSGC_BEGIN_prologue_epilogue"_attr = - (status == JSGC_BEGIN ? "prologue" : "epilogue"), - "mongo_sm_get_total_bytes"_attr = mongo::sm::get_total_bytes(), - "mongo_sm_get_max_bytes"_attr = mongo::sm::get_max_bytes()); + "MozJS GC heap stats", + "phase"_attr = (status == JSGC_BEGIN ? "prologue" : "epilogue"), + "total"_attr = mongo::sm::get_total_bytes(), + "limit"_attr = mongo::sm::get_max_bytes()); } #if __has_feature(address_sanitizer) @@ -949,10 +947,10 @@ bool MozJSImplScope::_checkErrorState(bool success, bool reportError, bool asser if (reportError) LOGV2_INFO_OPTIONS( - 4635900, + 20163, logv2::LogOptions(logv2::LogTag::kPlainShell, logv2::LogTruncation::Disabled), - "{message}", - "message"_attr = redact(_error)); + "{jsError}", + "jsError"_attr = redact(_error)); // Clear the status state auto status = std::move(_status); |