chore: fix logging

This commit is contained in:
Unlock Music Dev 2022-12-06 01:32:13 +08:00
parent 3857ba91a6
commit 8319df6ca3
No known key found for this signature in database
GPG Key ID: 95202E10D3413A1D

View File

@ -164,12 +164,13 @@ func tryDecFile(inputFile string, outputDir string, allDec []common.NewDecoderFu
return err
}
defer file.Close()
logger := logger.With(zap.String("source", inputFile))
decParams := &common.DecoderParams{
Reader: file,
Extension: filepath.Ext(inputFile),
FilePath: inputFile,
Logger: logger.With(zap.String("source", inputFile)),
Logger: logger,
}
var dec common.Decoder