SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
add logging
Chris Lu6e25acc6818d
diff --git a/weed/filer2/filer.go b/weed/filer2/filer.goindex f95dce4dff..f7d782d624 100644--- a/weed/filer2/filer.go+++ b/weed/filer2/filer.go@@ -122,6 +122,7 @@ func (f *Filer) CreateEntry(ctx context.Context, entry *Entry, o_excl bool) erromkdirErr := f.store.InsertEntry(ctx, dirEntry)if mkdirErr != nil {if _, err := f.FindEntry(ctx, FullPath(dirPath)); err == ErrNotFound {+ glog.V(3).Infof("mkdir %s: %v", dirPath, mkdirErr)return fmt.Errorf("mkdir %s: %v", dirPath, mkdirErr)}} else {@@ -165,6 +166,7 @@ func (f *Filer) CreateEntry(ctx context.Context, entry *Entry, o_excl bool) erro}} else {if o_excl {+ glog.V(3).Infof("EEXIST: entry %s already exists", entry.FullPath)return fmt.Errorf("EEXIST: entry %s already exists", entry.FullPath)}if err := f.UpdateEntry(ctx, oldEntry, entry); err != nil {@@ -173,7 +175,7 @@ func (f *Filer) CreateEntry(ctx context.Context, entry *Entry, o_excl bool) erro}}- // glog.V(4).Infof("CreateEntry %s: created", entry.FullPath)+ glog.V(4).Infof("CreateEntry %s: created", entry.FullPath)f.NotifyUpdateEvent(oldEntry, entry, true)