Skip to content

Commit

Permalink
[debug] Migrate to IsSeverityEnabled
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Jacob Rutherford <[email protected]>
  • Loading branch information
gbbosak authored and CQ Bot committed Jul 22, 2024
1 parent db6916c commit 45ed530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/developer/debug/shared/logging/logging.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>(location_.line()),
nullptr, nullptr)
.stream()
Expand Down

0 comments on commit 45ed530

Please sign in to comment.