@@ -282,7 +282,6 @@ impl Client {
282282 event = match integration. process_event ( event, & self . options ) {
283283 Some ( event) => event,
284284 None => {
285- #[ cfg( feature = "debug_logs" ) ]
286285 sentry_debug ! ( "integration dropped event {:?}" , id) ;
287286 return None ;
288287 }
@@ -303,13 +302,11 @@ impl Client {
303302 }
304303
305304 if let Some ( ref func) = self . options . before_send {
306- #[ cfg( feature = "debug_logs" ) ]
307305 sentry_debug ! ( "invoking before_send callback" ) ;
308306 let id = event. event_id ;
309307 if let Some ( processed_event) = func ( event) {
310308 event = processed_event;
311309 } else {
312- #[ cfg( feature = "debug_logs" ) ]
313310 sentry_debug ! ( "before_send dropped event {:?}" , id) ;
314311 return None ;
315312 }
@@ -444,11 +441,9 @@ impl Client {
444441 drop ( self . logs_batcher . write ( ) . unwrap ( ) . take ( ) ) ;
445442 let transport_opt = self . transport . write ( ) . unwrap ( ) . take ( ) ;
446443 if let Some ( transport) = transport_opt {
447- #[ cfg( feature = "debug_logs" ) ]
448444 sentry_debug ! ( "client close; request transport to shut down" ) ;
449445 transport. shutdown ( timeout. unwrap_or ( self . options . shutdown_timeout ) )
450446 } else {
451- #[ cfg( feature = "debug_logs" ) ]
452447 sentry_debug ! ( "client close; no transport to shut down" ) ;
453448 true
454449 }
@@ -470,7 +465,6 @@ impl Client {
470465 #[ cfg( feature = "logs" ) ]
471466 pub fn capture_log ( & self , log : Log , scope : & Scope ) {
472467 if !self . options . enable_logs {
473- #[ cfg( feature = "debug_logs" ) ]
474468 sentry_debug ! ( "[Client] called capture_log, but options.enable_logs is set to false" ) ;
475469 return ;
476470 }
0 commit comments