@@ -370,9 +370,9 @@ def apply_to_event(
370370 # type: (...) -> Optional[Event]
371371 """Applies the information contained on the scope to the given event."""
372372
373- def _drop (event , cause , ty ):
374- # type: (Dict[str, Any], Any, str) -> Optional[Any]
375- logger .info ("%s (%s) dropped event (%s) " , ty , cause , event )
373+ def _drop (cause , ty ):
374+ # type: (Any, str) -> Optional[Any]
375+ logger .info ("%s (%s) dropped event" , ty , cause )
376376 return None
377377
378378 is_transaction = event .get ("type" ) == "transaction"
@@ -425,15 +425,15 @@ def _drop(event, cause, ty):
425425 for error_processor in self ._error_processors :
426426 new_event = error_processor (event , exc_info )
427427 if new_event is None :
428- return _drop (event , error_processor , "error processor" )
428+ return _drop (error_processor , "error processor" )
429429 event = new_event
430430
431431 for event_processor in chain (global_event_processors , self ._event_processors ):
432432 new_event = event
433433 with capture_internal_exceptions ():
434434 new_event = event_processor (event , hint )
435435 if new_event is None :
436- return _drop (event , event_processor , "event processor" )
436+ return _drop (event_processor , "event processor" )
437437 event = new_event
438438
439439 return event
0 commit comments