@@ -370,9 +370,9 @@ def apply_to_event(
370
370
# type: (...) -> Optional[Event]
371
371
"""Applies the information contained on the scope to the given event."""
372
372
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 )
376
376
return None
377
377
378
378
is_transaction = event .get ("type" ) == "transaction"
@@ -425,15 +425,15 @@ def _drop(event, cause, ty):
425
425
for error_processor in self ._error_processors :
426
426
new_event = error_processor (event , exc_info )
427
427
if new_event is None :
428
- return _drop (event , error_processor , "error processor" )
428
+ return _drop (error_processor , "error processor" )
429
429
event = new_event
430
430
431
431
for event_processor in chain (global_event_processors , self ._event_processors ):
432
432
new_event = event
433
433
with capture_internal_exceptions ():
434
434
new_event = event_processor (event , hint )
435
435
if new_event is None :
436
- return _drop (event , event_processor , "event processor" )
436
+ return _drop (event_processor , "event processor" )
437
437
event = new_event
438
438
439
439
return event
0 commit comments