diff options
Diffstat (limited to 'src/mongo/db/free_mon')
-rw-r--r-- | src/mongo/db/free_mon/free_mon_processor.cpp | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/src/mongo/db/free_mon/free_mon_processor.cpp b/src/mongo/db/free_mon/free_mon_processor.cpp index ddf5110b27c..ac2d9355635 100644 --- a/src/mongo/db/free_mon/free_mon_processor.cpp +++ b/src/mongo/db/free_mon/free_mon_processor.cpp @@ -608,8 +608,10 @@ void FreeMonProcessor::doAsyncRegisterComplete( Status s = validateRegistrationResponse(resp); if (!s.isOK()) { - LOGV2_WARNING( - 20620, "Free Monitoring registration halted due to {status}", "status"_attr = s); + LOGV2_WARNING(20620, + "Free Monitoring registration halted due to {error}", + "Free Monitoring registration halted due to error", + "error"_attr = s); // Disable on any error _state->setState(StorageStateEnum::disabled); @@ -682,13 +684,12 @@ void FreeMonProcessor::doAsyncRegisterFail( return; } - LOGV2_DEBUG( - 20616, - 1, - "Free Monitoring Registration Failed with status '{status}', retrying in {interval}", - "Free Monitoring Registration Failed", - "status"_attr = msg->getPayload(), - "interval"_attr = _registrationRetry->getNextDuration()); + LOGV2_DEBUG(20616, + 1, + "Free Monitoring Registration Failed with status '{error}', retrying in {interval}", + "Free Monitoring Registration Failed, will retry after interval", + "error"_attr = msg->getPayload(), + "interval"_attr = _registrationRetry->getNextDuration()); // Enqueue a register retry enqueue(FreeMonRegisterCommandMessage::createWithDeadline( @@ -795,8 +796,10 @@ void FreeMonProcessor::doAsyncMetricsComplete( Status s = validateMetricsResponse(resp); if (!s.isOK()) { - LOGV2_WARNING( - 20622, "Free Monitoring metrics uploading halted due to {status}", "status"_attr = s); + LOGV2_WARNING(20622, + "Free Monitoring metrics uploading halted due to {error}", + "Free Monitoring metrics uploading halted due to error", + "error"_attr = s); // Disable free monitoring on validation errors _state->setState(StorageStateEnum::disabled); @@ -873,13 +876,12 @@ void FreeMonProcessor::doAsyncMetricsFail( return; } - LOGV2_DEBUG( - 20618, - 1, - "Free Monitoring Metrics upload failed with status {status}, retrying in {interval}", - "Free Monitoring Metrics upload failed", - "status"_attr = msg->getPayload(), - "interval"_attr = _metricsRetry->getNextDuration()); + LOGV2_DEBUG(20618, + 1, + "Free Monitoring Metrics upload failed with status {error}, retrying in {interval}", + "Free Monitoring Metrics upload failed, will retry after interval", + "error"_attr = msg->getPayload(), + "interval"_attr = _metricsRetry->getNextDuration()); // Enqueue next metrics upload enqueue(FreeMonMessage::createWithDeadline(FreeMonMessageType::MetricsSend, |