@@ -899,9 +899,13 @@ impl Handler<SupervisionFailureMessage> for PythonActor {
899899 // TODO: We also don't want to deliver multiple supervision
900900 // events from the same mesh if an earlier one is handled.
901901 tracing:: info!(
902- "__supervise__ on {} handled a supervision event, not reporting any further: {}" ,
902+ name = "ActorMeshStatus" ,
903+ status = "SupervisionError::Handled" ,
904+ // only care about the event sender when the message is handled
905+ actor_name = message. actor_mesh_name,
906+ event = %message. event,
907+ "__supervise__ on {} handled a supervision event, not reporting any further" ,
903908 cx. self_id( ) ,
904- message. event
905909 ) ;
906910 Ok ( ( ) )
907911 } else {
@@ -913,6 +917,22 @@ impl Handler<SupervisionFailureMessage> for PythonActor {
913917
914918 // False -- we propagate the event onward, but update it with the fact that
915919 // this actor is now the event creator.
920+ for ( actor_name, status) in [
921+ (
922+ message. actor_mesh_name . as_str ( ) ,
923+ "SupervisionError::Unhandled" ,
924+ ) ,
925+ ( cx. self_id ( ) . name ( ) , "UnhandledSupervisionEvent" ) ,
926+ ] {
927+ tracing:: info!(
928+ name = "ActorMeshStatus" ,
929+ status,
930+ actor_name,
931+ event = %message. event,
932+ "__supervise__ on {} did not handle a supervision event, reporting to the next next owner" ,
933+ cx. self_id( ) ,
934+ ) ;
935+ }
916936 let err = ActorErrorKind :: UnhandledSupervisionEvent ( Box :: new (
917937 ActorSupervisionEvent :: new (
918938 cx. self_id ( ) . clone ( ) ,
@@ -932,6 +952,22 @@ impl Handler<SupervisionFailureMessage> for PythonActor {
932952 // Include the event it was handling in the error message.
933953
934954 // Add to caused_by chain.
955+ for ( actor_name, status) in [
956+ (
957+ message. actor_mesh_name . as_str ( ) ,
958+ "SupervisionError::__supervise__::exception" ,
959+ ) ,
960+ ( cx. self_id ( ) . name ( ) , "UnhandledSupervisionEvent" ) ,
961+ ] {
962+ tracing:: info!(
963+ name = "ActorMeshStatus" ,
964+ status,
965+ actor_name,
966+ event = %message. event,
967+ "__supervise__ on {} threw an exception" ,
968+ cx. self_id( ) ,
969+ ) ;
970+ }
935971 let err = ActorErrorKind :: UnhandledSupervisionEvent ( Box :: new (
936972 ActorSupervisionEvent :: new (
937973 cx. self_id ( ) . clone ( ) ,
0 commit comments