diff --git a/CHANGELOG.md b/CHANGELOG.md index 40fde267..03d9d321 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ - It's also possible to use `EventMapping::Combined` to map a `tracing` event to multiple items in Sentry. - `ctx` in the signatures of `event_from_event`, `breadcrumb_from_event` and `log_from_event` has been changed to take `impl Into>>` to avoid cloning the `Context` when mapping to multiple items. +### Features + +- feat(core): emit debug log when calling capture_log but logs are disabled (#849) by @lcian + ### Fixes - fix(logs): stringify u64 attributes greater than `i64::MAX` (#846) by @lcian diff --git a/sentry-core/src/client.rs b/sentry-core/src/client.rs index 92262ba5..a4b72d08 100644 --- a/sentry-core/src/client.rs +++ b/sentry-core/src/client.rs @@ -464,7 +464,8 @@ impl Client { /// Captures a log and sends it to Sentry. #[cfg(feature = "logs")] pub fn capture_log(&self, log: Log, scope: &Scope) { - if !self.options().enable_logs { + if !self.options.enable_logs { + sentry_debug!("[Client] called capture_log, but options.enable_logs is set to false"); return; } if let Some(log) = self.prepare_log(log, scope) {