Skip to content

Commit 68ea043

Browse files
committed
chore: add logging to analysisStepNode for better debugging
1 parent de01fb5 commit 68ea043

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/graph/auralyze-graph.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,18 @@ export async function analysisStepNode(
142142
): Promise<GraphNodeResult> {
143143
// Skip if no URL or already errored
144144
if (!state.uploadUrl || state.error) {
145+
console.log('[analysisStepNode] Skipping - no URL or error exists');
145146
return {};
146147
}
147148

149+
console.log('[analysisStepNode] Starting analysis for URL:', state.uploadUrl);
150+
148151
try {
149152
const analysis = await deps.audioAnalysisClient.analyze({ url: state.uploadUrl });
153+
console.log('[analysisStepNode] Analysis complete:', JSON.stringify(analysis, null, 2));
150154
return { analysis };
151155
} catch (error) {
156+
console.error('[analysisStepNode] Analysis failed:', error);
152157
return { error: formatError('Analysis', error) };
153158
}
154159
}

0 commit comments

Comments
 (0)