Add INFO-level logging to pipeline and TimerNode for debugging
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user