Add INFO-level logging to pipeline and TimerNode for debugging

This commit is contained in:
Claude
2025-11-12 06:59:24 +00:00
parent 49630f4e54
commit 7fb953c5a3
2 changed files with 8 additions and 3 deletions

View File

@@ -95,7 +95,7 @@ impl NodeLogic for TimerNodeLogic {
stop_token: CancellationToken,
) -> Result<(), AudioError> {
let mut rx = input.expect("TimerNode must have input");
tracing::debug!(
tracing::info!(
"TimerNodeLogic::process started (max_lead_time={:.1}s), {} children",
self.max_lead_time_sec,
output.len()

View File

@@ -518,18 +518,22 @@ impl<L: NodeLogic> AudioPipelineNode for Node<L> {
..
} = *self;
tracing::info!("Node::run() starting with {} children", children.len());
// ═══════════════════════════════════════════════════════════════════
// PHASE 1: SPAWNER TOUS LES ENFANTS
// ═══════════════════════════════════════════════════════════════════
let mut child_handles = Vec::new();
for child in children {
for (i, child) in children.into_iter().enumerate() {
tracing::info!("Spawning child {}", i);
let child_token = stop_token.child_token();
let handle = tokio::spawn(async move {
child.run(child_token).await
});
child_handles.push(handle);
}
tracing::info!("All {} children spawned", child_handles.len());
// ═══════════════════════════════════════════════════════════════════
// PHASE 2: MONITORER LES ENFANTS EN PARALLÈLE
@@ -626,9 +630,10 @@ impl<L: NodeLogic> AudioPipelineNode for Node<L> {
// Logique métier du nœud
process_result = logic.process(rx, child_txs.clone(), stop_token.clone()) => {
tracing::info!("Node logic.process() returned");
match process_result {
Ok(()) => {
tracing::debug!("Node process completed successfully");
tracing::info!("Node process completed successfully");
(StopReason::Completed, Ok(()), false)
}
Err(e) => {