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
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user