diff options
Diffstat (limited to 'src/mongo/util/alarm_test.cpp')
-rw-r--r-- | src/mongo/util/alarm_test.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/util/alarm_test.cpp b/src/mongo/util/alarm_test.cpp index b1eba261cee..9da70d6ea3b 100644 --- a/src/mongo/util/alarm_test.cpp +++ b/src/mongo/util/alarm_test.cpp @@ -49,21 +49,22 @@ TEST(AlarmScheduler, BasicSingleThread) { auto alarm = scheduler->alarmAt(testStart + Milliseconds(10)); bool firstTimerExpired = false; std::move(alarm.future).getAsync([&](Status status) { - LOGV2(23071, "Timer expired: {status}", "status"_attr = status); + LOGV2(23071, "First timer expired: {error}", "First timer expired", "error"_attr = status); firstTimerExpired = true; }); alarm = scheduler->alarmAt(testStart + Milliseconds(500)); bool secondTimerExpired = false; std::move(alarm.future).getAsync([&](Status status) { - LOGV2(23072, "Second timer expired: {status}", "status"_attr = status); + LOGV2( + 23072, "Second timer expired: {error}", "Second timer expired", "error"_attr = status); secondTimerExpired = true; }); alarm = scheduler->alarmAt(testStart + Milliseconds(515)); bool thirdTimerExpired = false; std::move(alarm.future).getAsync([&](Status status) { - LOGV2(23073, "third timer expired: {status}", "status"_attr = status); + LOGV2(23073, "Third timer expired: {error}", "Third timer expired", "error"_attr = status); thirdTimerExpired = true; }); auto missingEvent = alarm.handle; |