diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-08-01 15:15:29 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2017-08-16 16:28:02 -0400 |
commit | cdf7aacb213c99d3ce620761ff46b030bbd7732d (patch) | |
tree | cdc32bf8c2899f88b2b3ea99c89e76bbc314f4ab /src/mongo/logger | |
parent | 5a1b0681dcee481f631dc647000b895e20cc7cfd (diff) | |
download | mongo-cdf7aacb213c99d3ce620761ff46b030bbd7732d.tar.gz |
SERVER-30580 Make argument order consistently code then message
Diffstat (limited to 'src/mongo/logger')
-rw-r--r-- | src/mongo/logger/redaction_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/logger/redaction_test.cpp b/src/mongo/logger/redaction_test.cpp index 2e300199458..e1f12d6c4ab 100644 --- a/src/mongo/logger/redaction_test.cpp +++ b/src/mongo/logger/redaction_test.cpp @@ -53,13 +53,13 @@ TEST(RedactStatusTest, StatusOK) { TEST(RedactExceptionTest, NoRedact) { logger::globalLogDomain()->setShouldRedactLogs(false); - DBException ex(kMsg, ErrorCodes::InternalError); + DBException ex(ErrorCodes::InternalError, kMsg); ASSERT_EQ(redact(ex), ex.toString()); } TEST(RedactExceptionTest, BasicException) { logger::globalLogDomain()->setShouldRedactLogs(true); - DBException ex(kMsg, ErrorCodes::InternalError); + DBException ex(ErrorCodes::InternalError, kMsg); ASSERT_EQ(redact(ex), "InternalError ###"); } |