From 45ed530714bb615c318ea4cb6e47e0e3a6a65159 Mon Sep 17 00:00:00 2001 From: Brian Bosak Date: Mon, 22 Jul 2024 18:40:48 +0000 Subject: [PATCH] [debug] Migrate to IsSeverityEnabled ShouldCreateLogMessage is being renamed to IsSeverityEnabled. Bug: b/299996898 Change-Id: Iffa4f7d1eee129be0b4bc4876f6dda836946593d Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1085014 Commit-Queue: Brian Bosak Reviewed-by: Jacob Rutherford --- src/developer/debug/shared/logging/logging.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/developer/debug/shared/logging/logging.cc b/src/developer/debug/shared/logging/logging.cc index 3b601f54eae4..a3bf8cb8a862 100644 --- a/src/developer/debug/shared/logging/logging.cc +++ b/src/developer/debug/shared/logging/logging.cc @@ -36,7 +36,7 @@ LogStatement::~LogStatement() { } if (log_enable_syslog) { auto severity = ConvertSeverity(severity_); - if (fuchsia_logging::ShouldCreateLogMessage(severity)) { + if (fuchsia_logging::IsSeverityEnabled(severity)) { fuchsia_logging::LogMessage(severity, location_.file(), static_cast(location_.line()), nullptr, nullptr) .stream()