Improve AI video description generation and error handling

Enhance AI video description generation by adding detailed error logging in `aiService.ts` and implementing debug logs within `routes.ts` to track video processing and description generation.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 170e18f0-0f13-4eca-8643-546bba1dd8cc
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/170e18f0-0f13-4eca-8643-546bba1dd8cc/LY6xmBI
This commit is contained in:
sebastjanartic
2025-09-02 13:10:51 +00:00
parent befb0d2e98
commit d0443dc1b3
2 changed files with 9 additions and 1 deletions
+2 -1
View File
@@ -73,8 +73,9 @@ Odgovori samo z opisom, brez dodatnih pojasnil.`;
return description;
} catch (error) {
} catch (error: any) {
console.error("Error generating video description:", error);
console.error("Error details:", error?.message || error); // More detailed error logging
throw new Error("Napaka pri generiranju opisa s strani AI");
}
}