Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add logging when loading nodes #251

Merged
merged 1 commit into from
May 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions zenoh-flow-runtime/src/runtime/load.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ The problematic link is:
.iter()
.filter(|(_, operator)| assigned_nodes.contains(&operator.id))
{
tracing::debug!("Loading operator: {operator_id}");

let (inputs, outputs) = channels.remove(operator_id).context(format!(
r#"
Zenoh-Flow encountered a fatal internal error.
Expand Down Expand Up @@ -320,6 +322,8 @@ The channels for the Inputs and Outputs of Operator < {} > were not created.
.iter()
.filter(|(_, source)| assigned_nodes.contains(&source.id))
{
tracing::debug!("Loading source: {source_id}");

let (_, outputs) = channels.remove(source_id).context(format!(
r#"
Zenoh-Flow encountered a fatal internal error.
Expand Down Expand Up @@ -399,6 +403,8 @@ Maybe change the features in the Cargo.toml?
.iter()
.filter(|(_, sink)| assigned_nodes.contains(&sink.id))
{
tracing::debug!("Loading sink: {sink_id}");

let (inputs, _) = channels.remove(sink_id).context(format!(
r#"
Zenoh-Flow encountered a fatal internal error.
Expand Down