Skip to content

Commit 66da757

Browse files
hyperactor_mesh_test_bootstrap: enable logging (#755)
Summary: Pull Request resolved: #755 using `ProcessAllocator` in `hyperactor_mesh` testing, we need this to get logs. Reviewed By: mariusae Differential Revision: D79594721 fbshipit-source-id: 88706b318742062210ff39106aa3e325e63a26e0
1 parent bb48572 commit 66da757

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

hyperactor_mesh/test/bootstrap.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,11 @@
1010
/// simply invoking [`hyperactor_mesh::bootstrap_or_die`].
1111
#[tokio::main]
1212
async fn main() {
13+
// Logs are written to /tmp/$USER/monarch_log*.
14+
let subscriber = tracing_subscriber::fmt()
15+
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
16+
.finish();
17+
tracing::subscriber::set_global_default(subscriber).expect("failed to set subscriber");
18+
1319
hyperactor_mesh::bootstrap_or_die().await;
1420
}

0 commit comments

Comments
 (0)