mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-05-12 00:49:43 +08:00
feat: add logging for file save operations in storage modules
This commit is contained in:
@@ -98,6 +98,7 @@ func (a *Alist) Name() string {
|
||||
}
|
||||
|
||||
func (a *Alist) Save(ctx context.Context, filePath, storagePath string) error {
|
||||
logger.L.Infof("Saving file %s to %s", filePath, storagePath)
|
||||
file, err := os.Open(filePath)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to open file: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user