summaryrefslogtreecommitdiff
path: root/src/mongo/logger
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2017-08-01 15:15:29 -0400
committerMathias Stearn <mathias@10gen.com>2017-08-16 16:28:02 -0400
commitcdf7aacb213c99d3ce620761ff46b030bbd7732d (patch)
treecdc32bf8c2899f88b2b3ea99c89e76bbc314f4ab /src/mongo/logger
parent5a1b0681dcee481f631dc647000b895e20cc7cfd (diff)
downloadmongo-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.cpp4
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 ###");
}