diff options
Diffstat (limited to 'src/mongo/db/s/migration_util.cpp')
-rw-r--r-- | src/mongo/db/s/migration_util.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mongo/db/s/migration_util.cpp b/src/mongo/db/s/migration_util.cpp index f5305dae216..75b0c8a24c2 100644 --- a/src/mongo/db/s/migration_util.cpp +++ b/src/mongo/db/s/migration_util.cpp @@ -63,7 +63,6 @@ #include "mongo/s/request_types/ensure_chunk_version_is_greater_than_gen.h" #include "mongo/util/concurrency/thread_pool.h" #include "mongo/util/exit.h" -#include "mongo/util/log.h" namespace mongo { namespace migrationutil { @@ -182,8 +181,12 @@ void retryIdempotentWorkUntilSuccess(OperationContext* opCtx, break; } catch (DBException& ex) { if (attempt % kLogRetryAttemptThreshold == 1) { - warning() << "retrying " << taskDescription << " after " << attempt - << " failed attempts, last seen error: " << ex; + LOGV2_WARNING(23937, + "retrying {taskDescription} after {attempt} failed attempts, last " + "seen error: {ex}", + "taskDescription"_attr = taskDescription, + "attempt"_attr = attempt, + "ex"_attr = ex); } } } |