Skip to content

Commit

Permalink
Don't log unwanted when not initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet authored Jul 17, 2024
1 parent eb85220 commit 63f686a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions absl/log/internal/log_sink_set.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 63f686a

Please sign in to comment.