@@ -282,6 +282,7 @@ impl Client {
282282 event = match integration. process_event ( event, & self . options ) {
283283 Some ( event) => event,
284284 None => {
285+ #[ cfg( feature = "debug_logs" ) ]
285286 sentry_debug ! ( "integration dropped event {:?}" , id) ;
286287 return None ;
287288 }
@@ -302,11 +303,13 @@ impl Client {
302303 }
303304
304305 if let Some ( ref func) = self . options . before_send {
306+ #[ cfg( feature = "debug_logs" ) ]
305307 sentry_debug ! ( "invoking before_send callback" ) ;
306308 let id = event. event_id ;
307309 if let Some ( processed_event) = func ( event) {
308310 event = processed_event;
309311 } else {
312+ #[ cfg( feature = "debug_logs" ) ]
310313 sentry_debug ! ( "before_send dropped event {:?}" , id) ;
311314 return None ;
312315 }
@@ -441,9 +444,11 @@ impl Client {
441444 drop ( self . logs_batcher . write ( ) . unwrap ( ) . take ( ) ) ;
442445 let transport_opt = self . transport . write ( ) . unwrap ( ) . take ( ) ;
443446 if let Some ( transport) = transport_opt {
447+ #[ cfg( feature = "debug_logs" ) ]
444448 sentry_debug ! ( "client close; request transport to shut down" ) ;
445449 transport. shutdown ( timeout. unwrap_or ( self . options . shutdown_timeout ) )
446450 } else {
451+ #[ cfg( feature = "debug_logs" ) ]
447452 sentry_debug ! ( "client close; no transport to shut down" ) ;
448453 true
449454 }
@@ -465,6 +470,7 @@ impl Client {
465470 #[ cfg( feature = "logs" ) ]
466471 pub fn capture_log ( & self , log : Log , scope : & Scope ) {
467472 if !self . options . enable_logs {
473+ #[ cfg( feature = "debug_logs" ) ]
468474 sentry_debug ! ( "[Client] called capture_log, but options.enable_logs is set to false" ) ;
469475 return ;
470476 }
0 commit comments