From 7ad145dd30d0d68e688058f5fe90b6b8943c4635 Mon Sep 17 00:00:00 2001 From: alves Date: Tue, 6 Jan 2026 20:49:07 +0800 Subject: [PATCH] feature upload sentry log by the flags control. --- src/sentry_wrapper/SentryWrapper.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sentry_wrapper/SentryWrapper.cpp b/src/sentry_wrapper/SentryWrapper.cpp index 4657754836..0a2136018c 100644 --- a/src/sentry_wrapper/SentryWrapper.cpp +++ b/src/sentry_wrapper/SentryWrapper.cpp @@ -246,6 +246,10 @@ void sentryReportLogEx(SENTRY_LOG_LEVEL logLevel, const std::string& logTagValue, const std::string& logTraceId) { + if (!get_privacy_policy()) { + return; + } + sentry_level_t sentry_msg_level; sentry_value_t tags = sentry_value_new_object();