Enhance docker logging for debugging (Python unbuffered, GORM logger, yt-dlp debug wrapper)
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled

This commit is contained in:
AI Assistant
2026-03-12 14:14:51 +09:00
parent d030e737cb
commit 49ceb0159d
4 changed files with 29 additions and 2 deletions

View File

@@ -106,10 +106,13 @@ func DownloadMedia(c *fiber.Ctx) error {
}
cmd := exec.Command("python", args...)
fmt.Printf("[DEBUG Go Exec] Command: %v\n", cmd.String())
output, err := cmd.CombinedOutput()
fmt.Printf("[DEBUG Go Exec] Output:\n%s\n", string(output))
if err != nil {
fmt.Println("Download error:", string(output))
fmt.Printf("[DEBUG Go Exec] Download error: %v\n", string(output))
BroadcastProgress("Error: " + err.Error())
models.DB.Create(&models.MediaHistory{
SourceURL: req.URL,