diff options
| author | Aleksey Kosov <rusyak777@list.ru> | 2025-06-24 18:44:06 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-24 08:44:06 -0700 |
| commit | 4511c2cc1f0aef4f0df8712f17dc62606a9949e0 (patch) | |
| tree | 0b82709d104ae8882acd14f5047d020df9375524 /weed/filer/arangodb/arangodb_store.go | |
| parent | 2cdd8092cc57cb828e92588d5f09f594bcc82f26 (diff) | |
| download | seaweedfs-4511c2cc1f0aef4f0df8712f17dc62606a9949e0.tar.xz seaweedfs-4511c2cc1f0aef4f0df8712f17dc62606a9949e0.zip | |
Changes logging function (#6919)
* updated logging methods for stores
* updated logging methods for stores
* updated logging methods for filer
* updated logging methods for uploader and http_util
* updated logging methods for weed server
---------
Co-authored-by: akosov <a.kosov@kryptonite.ru>
Diffstat (limited to 'weed/filer/arangodb/arangodb_store.go')
| -rw-r--r-- | weed/filer/arangodb/arangodb_store.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/filer/arangodb/arangodb_store.go b/weed/filer/arangodb/arangodb_store.go index 457b5f28b..0a3a06d16 100644 --- a/weed/filer/arangodb/arangodb_store.go +++ b/weed/filer/arangodb/arangodb_store.go @@ -233,7 +233,7 @@ func (store *ArangodbStore) FindEntry(ctx context.Context, fullpath util.FullPat if driver.IsNotFound(err) { return nil, filer_pb.ErrNotFound } - glog.Errorf("find %s: %v", fullpath, err) + glog.ErrorfCtx(ctx, "find %s: %v", fullpath, err) return nil, filer_pb.ErrNotFound } if len(data.Meta) == 0 { @@ -257,7 +257,7 @@ func (store *ArangodbStore) DeleteEntry(ctx context.Context, fullpath util.FullP } _, err = targetCollection.RemoveDocument(ctx, hashString(string(fullpath))) if err != nil && !driver.IsNotFound(err) { - glog.Errorf("find %s: %v", fullpath, err) + glog.ErrorfCtx(ctx, "find %s: %v", fullpath, err) return fmt.Errorf("delete %s : %v", fullpath, err) } return nil @@ -331,7 +331,7 @@ sort d.name asc converted := arrayToBytes(data.Meta) if decodeErr := entry.DecodeAttributesAndChunks(util.MaybeDecompressData(converted)); decodeErr != nil { err = decodeErr - glog.V(0).Infof("list %s : %v", entry.FullPath, err) + glog.V(0).InfofCtx(ctx, "list %s : %v", entry.FullPath, err) break } |
