From 67beb46d4566764093a3269f261e1398b827685d Mon Sep 17 00:00:00 2001 From: Guogang Li Date: Fri, 30 May 2025 18:24:40 -0700 Subject: [PATCH] don't log message as private PiperOrigin-RevId: 765410309 --- internal/platform/implementation/apple/os_log_sink.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/platform/implementation/apple/os_log_sink.mm b/internal/platform/implementation/apple/os_log_sink.mm index d1232d78..65a35ab7 100644 --- a/internal/platform/implementation/apple/os_log_sink.mm +++ b/internal/platform/implementation/apple/os_log_sink.mm @@ -50,7 +50,7 @@ void OsLogSink::Send(const absl::LogEntry& entry) { std::string message = absl::StrCat("[", entry.source_basename(), ":", entry.source_line(), "] ", entry.text_message()); - os_log_with_type(log_, type, "%s", message.c_str()); + os_log_with_type(log_, type, "%{public}s", message.c_str()); } } // namespace apple