diff options
author | Gabriel Russell <gabriel.russell@mongodb.com> | 2020-05-21 12:06:47 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-06-02 22:09:56 +0000 |
commit | 451dcf99afb7a67e9a5b849e846391402b5928c9 (patch) | |
tree | 9ca45d512d6489e84a0e334cda3fe9303c6bf6ad /src/mongo/db/free_mon | |
parent | 3bef557cab5c17de9374f602c743b87808af590e (diff) | |
download | mongo-451dcf99afb7a67e9a5b849e846391402b5928c9.tar.gz |
SERVER-47075 Clean up some log lines
* all logs under mongo/transport and mongo/util/net were reviewed and
many were cleaned up
* all "status"_attr were reviewed and most changed to "error"_attr
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, |