Improve cloud job error logging for RCC provider errors (#9924)

This commit is contained in:
Chris Estreich 2025-12-08 11:15:34 -08:00 committed by GitHub
parent fba8508b10
commit 6f602fc88e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -296,13 +296,15 @@ export class RooHandler extends BaseOpenAiCompatibleProvider<string> {
}
}
} catch (error) {
// Log streaming errors with context
console.error("[RooHandler] Error during message streaming:", {
const errorContext = {
error: error instanceof Error ? error.message : String(error),
stack: error instanceof Error ? error.stack : undefined,
modelId: this.options.apiModelId,
hasTaskId: Boolean(metadata?.taskId),
})
}
console.error(`[RooHandler] Error during message streaming: ${JSON.stringify(errorContext)}`)
throw error
}
}