Skip to content

Commit 6822f65

Browse files
committed
added small logs [skip ci]
1 parent 0894603 commit 6822f65

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compute/src/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ async fn main() -> Result<()> {
6060
log::error!("Error checking services: {:?}", err);
6161
panic!("Service check failed.")
6262
}
63+
log::warn!("Using models: {:#?}", config.workflows.models);
6364
config
6465
}
6566
}
@@ -68,9 +69,8 @@ async fn main() -> Result<()> {
6869
.await
6970
.wrap_err("error during service checks")?;
7071

71-
log::warn!("Using models: {:#?}", config.workflows.models);
7272
if !token.is_cancelled() {
73-
// launch the node
73+
// launch the node in a separate thread
7474
let node_token = token.clone();
7575
let node_handle = tokio::spawn(async move {
7676
match DriaComputeNode::new(config, node_token).await {
@@ -92,6 +92,8 @@ async fn main() -> Result<()> {
9292
log::error!("Node handle error: {}", err);
9393
panic!("Could not exit Node thread handle.");
9494
};
95+
} else {
96+
log::warn!("Not launching node due to early exit.");
9597
}
9698

9799
Ok(())

0 commit comments

Comments
 (0)