Skip to content

Commit ba18f42

Browse files
committed
comment
1 parent aa6ac1c commit ba18f42

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sentry-tracing/src/layer.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ where
181181
sentry_core::Hub::current()
182182
.client()
183183
.map(|client| client.options().enable_logs)
184-
.unwrap_or(true)
184+
.unwrap_or(true) // default to true if we don't know, client will drop the
185+
// logs later if it was actually `enable_logs: false`
185186
}
186187
#[cfg(not(feature = "logs"))]
187188
{

0 commit comments

Comments
 (0)