feat: add logging for file save operations in storage modules

This commit is contained in:
krau
2025-02-21 14:04:32 +08:00
parent c9921926e3
commit d2669f0c99
3 changed files with 4 additions and 0 deletions

View File

@@ -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)