feat: fix download

This commit is contained in:
Rogee
2024-09-02 16:24:35 +08:00
parent 772421c40d
commit 07b700b158
3 changed files with 3 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 KiB

View File

@@ -70,7 +70,7 @@ func (t *TClient) Channel(ctx context.Context, channel *tg.Channel, cfg *Channel
return return
} }
channelMessage.WithPhoto(photo.GetID(), "jpg") channelMessage.WithPhoto(photo.GetID(), "jpg")
t.logger.Info("download failed", zap.String("asset", saveTo)) t.logger.Info("download photo success", zap.String("location", saveTo))
} }
} }
}) })

View File

@@ -26,7 +26,8 @@ func InitClient(cfg *config.Config) error {
logCore := zapcore.NewCore( logCore := zapcore.NewCore(
zapcore.NewJSONEncoder(zap.NewProductionEncoderConfig()), zapcore.NewJSONEncoder(zap.NewProductionEncoderConfig()),
logWriter, logWriter,
zap.DebugLevel, // zap.DebugLevel,
zap.InfoLevel,
) )
logger = zap.New(logCore) logger = zap.New(logCore)