From 63f686a52021711f204b35fe92e06b3ec1a48a17 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 17 Jul 2024 14:24:37 +0200 Subject: [PATCH] Don't log unwanted when not initialized --- absl/log/internal/log_sink_set.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/absl/log/internal/log_sink_set.cc b/absl/log/internal/log_sink_set.cc index 3d5c69952c2..37626c6caad 100644 --- a/absl/log/internal/log_sink_set.cc +++ b/absl/log/internal/log_sink_set.cc @@ -90,8 +90,7 @@ class StderrLogSink final : public LogSink { ~StderrLogSink() override = default; void Send(const absl::LogEntry& entry) override { - if (entry.log_severity() < absl::StderrThreshold() && - absl::log_internal::IsInitialized()) { + if (entry.log_severity() < absl::StderrThreshold()) { return; }