feat: fix download
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 125 KiB |
@@ -70,7 +70,7 @@ func (t *TClient) Channel(ctx context.Context, channel *tg.Channel, cfg *Channel
|
||||
return
|
||||
}
|
||||
channelMessage.WithPhoto(photo.GetID(), "jpg")
|
||||
t.logger.Info("download failed", zap.String("asset", saveTo))
|
||||
t.logger.Info("download photo success", zap.String("location", saveTo))
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -26,7 +26,8 @@ func InitClient(cfg *config.Config) error {
|
||||
logCore := zapcore.NewCore(
|
||||
zapcore.NewJSONEncoder(zap.NewProductionEncoderConfig()),
|
||||
logWriter,
|
||||
zap.DebugLevel,
|
||||
// zap.DebugLevel,
|
||||
zap.InfoLevel,
|
||||
)
|
||||
logger = zap.New(logCore)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user