infra: add logging wrapping
Resolves issues with gcp cloud logging quirks such as field names
This commit is contained in:
@@ -4,10 +4,11 @@ import (
|
||||
"bytes"
|
||||
"context"
|
||||
"errors"
|
||||
"log/slog"
|
||||
"os"
|
||||
"os/exec"
|
||||
"strings"
|
||||
|
||||
"github.com/flowy-live/llink/internal/utils/flog"
|
||||
)
|
||||
|
||||
func IsIOSPlayableMime(mime string) bool {
|
||||
@@ -56,7 +57,7 @@ func TranscodeToMp4(ctx context.Context, input TranscodeInput) (*TranscodeOutput
|
||||
|
||||
tmp, err := os.CreateTemp("", "transcode-*"+outputExt)
|
||||
if err != nil {
|
||||
slog.Error("transcode: failed to create temp file", "error", err)
|
||||
flog.Error("transcode: failed to create temp file", "error", err)
|
||||
return nil, err
|
||||
}
|
||||
tmpPath := tmp.Name()
|
||||
|
||||
Reference in New Issue
Block a user