MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / appendJSONLog

Function appendJSONLog

agent/utils/convert/convert.go:151–160  ·  view source on GitHub ↗
(f *os.File, entry response.FileConvertLog)

Source from the content-addressed store, hash-verified

149}
150
151func appendJSONLog(f *os.File, entry response.FileConvertLog) error {
152 data, err := json.Marshal(entry)
153 if err != nil {
154 return err
155 }
156 if _, err := f.WriteString(string(data) + "\n"); err != nil {
157 return err
158 }
159 return nil
160}
161
162func extractFFmpegError(logStr string) string {
163 priority := []string{"Error", "Invalid", "failed", "No "}

Callers 1

MediaFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected