diff options
author | Sara Golemon <sara.golemon@mongodb.com> | 2020-05-27 14:26:09 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-05-28 17:57:43 +0000 |
commit | 523613ab819cdf1098251c2dd33d813307bd61a2 (patch) | |
tree | ee853b5453a2ef373e725bd45b9fde8827ce70b5 /src/mongo/db/auth/security_key.cpp | |
parent | a7541c60e5904e7deafdedf5bb040cc8924ac7d3 (diff) | |
download | mongo-523613ab819cdf1098251c2dd33d813307bd61a2.tar.gz |
SERVER-48351 Clean up additional logv2 lines
Diffstat (limited to 'src/mongo/db/auth/security_key.cpp')
-rw-r--r-- | src/mongo/db/auth/security_key.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mongo/db/auth/security_key.cpp b/src/mongo/db/auth/security_key.cpp index 2dc7a92e5b7..a9b012543fe 100644 --- a/src/mongo/db/auth/security_key.cpp +++ b/src/mongo/db/auth/security_key.cpp @@ -86,7 +86,7 @@ public: if (!swSaslPassword.isOK()) { LOGV2_ERROR(20256, "Could not prep security key file for SCRAM-SHA-256", - "status"_attr = swSaslPassword.getStatus()); + "error"_attr = swSaslPassword.getStatus()); return boost::none; } const auto passwordDigest = mongo::createPasswordDigest( @@ -138,7 +138,7 @@ using std::string; bool setUpSecurityKey(const string& filename) { auto swKeyStrings = mongo::readSecurityFile(filename); if (!swKeyStrings.isOK()) { - LOGV2(20254, "Read security file failed", "status"_attr = swKeyStrings.getStatus()); + LOGV2(20254, "Read security file failed", "error"_attr = swKeyStrings.getStatus()); return false; } @@ -146,9 +146,10 @@ bool setUpSecurityKey(const string& filename) { if (keyStrings.size() > 2) { LOGV2_ERROR(20258, - "Only two keys are supported in the security key file, {size} are " + "Only two keys are supported in the security key file, {numKeys} are " "specified in {filename}", - "size"_attr = keyStrings.size(), + "Only two keys are supported in the security key file", + "numKeys"_attr = keyStrings.size(), "filename"_attr = filename); return false; } |