feat(logging): more usable exec log

This commit is contained in:
Sergey Krashevich
2024-04-14 21:55:22 +03:00
parent 5fa31fe4d6
commit adf49b8475
+2 -1
View File
@@ -7,6 +7,7 @@ import (
"fmt" "fmt"
"os" "os"
"os/exec" "os/exec"
"strings"
"sync" "sync"
"time" "time"
@@ -108,7 +109,7 @@ func handleRTSP(url, path string, cmd *exec.Cmd) (core.Producer, error) {
waitersMu.Unlock() waitersMu.Unlock()
}() }()
log.Debug().Str("url", url).Msg("[exec] run") log.Debug().Str("url", url).Str("cmd", fmt.Sprintf("%s", strings.Join(cmd.Args, " "))).Msg("[exec] run")
ts := time.Now() ts := time.Now()