diff options
Diffstat (limited to 'src/mongo/scripting/mozjs/session.cpp')
-rw-r--r-- | src/mongo/scripting/mozjs/session.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/scripting/mozjs/session.cpp b/src/mongo/scripting/mozjs/session.cpp index f1353742344..cc7eaa204af 100644 --- a/src/mongo/scripting/mozjs/session.cpp +++ b/src/mongo/scripting/mozjs/session.cpp @@ -33,6 +33,7 @@ #include "mongo/scripting/mozjs/session.h" +#include "mongo/logv2/log.h" #include "mongo/scripting/mozjs/bson.h" #include "mongo/scripting/mozjs/implscope.h" #include "mongo/scripting/mozjs/mongo.h" @@ -152,7 +153,10 @@ void SessionInfo::finalize(js::FreeOp* fop, JSObject* obj) { auto status = exceptionToStatus(); try { - LOG(0) << "Failed to end session " << lsid << " due to " << status; + LOGV2(22791, + "Failed to end session {lsid} due to {status}", + "lsid"_attr = lsid, + "status"_attr = status); } catch (...) { // This is here in case logging fails. } |