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