aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/tarantool/tarantool_store.go
diff options
context:
space:
mode:
authorAleksey Kosov <rusyak777@list.ru>2025-06-24 18:44:06 +0300
committerGitHub <noreply@github.com>2025-06-24 08:44:06 -0700
commit4511c2cc1f0aef4f0df8712f17dc62606a9949e0 (patch)
tree0b82709d104ae8882acd14f5047d020df9375524 /weed/filer/tarantool/tarantool_store.go
parent2cdd8092cc57cb828e92588d5f09f594bcc82f26 (diff)
downloadseaweedfs-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/tarantool/tarantool_store.go')
-rw-r--r--weed/filer/tarantool/tarantool_store.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/weed/filer/tarantool/tarantool_store.go b/weed/filer/tarantool/tarantool_store.go
index 8d19db60d..44727140a 100644
--- a/weed/filer/tarantool/tarantool_store.go
+++ b/weed/filer/tarantool/tarantool_store.go
@@ -260,39 +260,39 @@ func (store *TarantoolStore) ListDirectoryEntries(ctx context.Context, dirPath w
}
if len(results) < 1 {
- glog.Errorf("Can't find results, data is empty")
+ glog.ErrorfCtx(ctx, "Can't find results, data is empty")
return
}
rows, ok := results[0].([]interface{})
if !ok {
- glog.Errorf("Can't convert results[0] to list")
+ glog.ErrorfCtx(ctx, "Can't convert results[0] to list")
return
}
for _, result := range rows {
row, ok := result.([]interface{})
if !ok {
- glog.Errorf("Can't convert result to list")
+ glog.ErrorfCtx(ctx, "Can't convert result to list")
return
}
if len(row) < 5 {
- glog.Errorf("Length of result is less than needed: %v", len(row))
+ glog.ErrorfCtx(ctx, "Length of result is less than needed: %v", len(row))
return
}
nameRaw := row[2]
name, ok := nameRaw.(string)
if !ok {
- glog.Errorf("Can't convert name field to string. Actual type: %v, value: %v", reflect.TypeOf(nameRaw), nameRaw)
+ glog.ErrorfCtx(ctx, "Can't convert name field to string. Actual type: %v, value: %v", reflect.TypeOf(nameRaw), nameRaw)
return
}
dataRaw := row[4]
data, ok := dataRaw.(string)
if !ok {
- glog.Errorf("Can't convert data field to string. Actual type: %v, value: %v", reflect.TypeOf(dataRaw), dataRaw)
+ glog.ErrorfCtx(ctx, "Can't convert data field to string. Actual type: %v, value: %v", reflect.TypeOf(dataRaw), dataRaw)
return
}
@@ -302,7 +302,7 @@ func (store *TarantoolStore) ListDirectoryEntries(ctx context.Context, dirPath w
lastFileName = name
if decodeErr := entry.DecodeAttributesAndChunks(util.MaybeDecompressData([]byte(data))); 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
}
if !eachEntryFunc(entry) {