Skip to content

Commit ca2248e

Browse files
pzhan9facebook-github-bot
authored andcommitted
Add actor id to logs (#483)
Summary: Pull Request resolved: #483 As title Reviewed By: moonli Differential Revision: D78037347 fbshipit-source-id: 3d8b5d1e9dea16fb758e76dec3e7aedf74b175da
1 parent 1532c7f commit ca2248e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hyperactor/src/proc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ impl<A: Actor> Instance<A> {
10261026
/// Initialize and run the actor until it fails or is stopped.
10271027
async fn run(&mut self, actor: &mut A) -> Result<(), ActorError> {
10281028
hyperactor_telemetry::declare_static_counter!(MESSAGES_RECEIVED, "actor.messages_received");
1029-
tracing::debug!("entering actor loop");
1029+
tracing::debug!("entering actor loop: {}", self.self_id());
10301030

10311031
self.change_status(ActorStatus::Initializing);
10321032
actor
@@ -1087,7 +1087,7 @@ impl<A: Actor> Instance<A> {
10871087
}
10881088
tracing::debug!("drained {} messages", n);
10891089
}
1090-
tracing::debug!("exited actor loop");
1090+
tracing::debug!("exited actor loop: {}", self.self_id());
10911091
self.change_status(ActorStatus::Stopped);
10921092
Ok(())
10931093
}

0 commit comments

Comments
 (0)