diff options
Diffstat (limited to 'src/mongo/db/process_health/health_observer_base.cpp')
-rw-r--r-- | src/mongo/db/process_health/health_observer_base.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/process_health/health_observer_base.cpp b/src/mongo/db/process_health/health_observer_base.cpp index 331fae535c4..a253dfa4561 100644 --- a/src/mongo/db/process_health/health_observer_base.cpp +++ b/src/mongo/db/process_health/health_observer_base.cpp @@ -86,11 +86,11 @@ HealthCheckStatus HealthObserverBase::makeHealthyStatus() const { return HealthCheckStatus(getType()); } -HealthCheckStatus HealthObserverBase::makeSimpleFailedStatus(double severity, +HealthCheckStatus HealthObserverBase::makeSimpleFailedStatus(Severity severity, std::vector<Status>&& failures) const { - if (severity <= 0) { + if (severity == Severity::kOk) { LOGV2_WARNING(6007903, - "Creating faulty health check status requires positive severity", + "Creating faulty health check status requires non-ok severity", "observerType"_attr = getType()); } StringBuilder sb; |