diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-04-24 12:30:36 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-04-24 12:30:36 -0700 |
| commit | c5a931b22cef199275984fd4de6d679a85dfad98 (patch) | |
| tree | 474a7a860677afab99cdf79ba919b08ea4bf33bf | |
| parent | 9beea63960c88eaa938d3d6951ad9a711d9c5320 (diff) | |
| download | seaweedfs-c5a931b22cef199275984fd4de6d679a85dfad98.tar.xz seaweedfs-c5a931b22cef199275984fd4de6d679a85dfad98.zip | |
logging
| -rw-r--r-- | weed/filesys/dir.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/weed/filesys/dir.go b/weed/filesys/dir.go index 761fdc422..0fd5c75e6 100644 --- a/weed/filesys/dir.go +++ b/weed/filesys/dir.go @@ -63,7 +63,7 @@ func (dir *Dir) Attr(ctx context.Context, attr *fuse.Attr) error { Name: name, } - glog.V(1).Infof("read dir %s attr: %v", dir.Path, request) + glog.V(1).Infof("read dir %s request: %v", dir.Path, request) resp, err := client.LookupDirectoryEntry(ctx, request) if err != nil { if err == filer2.ErrNotFound { @@ -76,6 +76,7 @@ func (dir *Dir) Attr(ctx context.Context, attr *fuse.Attr) error { if resp.Entry != nil { dir.attributes = resp.Entry.Attributes } + glog.V(2).Infof("read dir %s attr: %v", dir.Path, dir.attributes) // dir.wfs.listDirectoryEntriesCache.Set(dir.Path, resp.Entry, dir.wfs.option.EntryCacheTtl) @@ -83,11 +84,11 @@ func (dir *Dir) Attr(ctx context.Context, attr *fuse.Attr) error { }) if err != nil { + glog.V(2).Infof("read dir %s attr: %v, error: %v", dir.Path, dir.attributes, err) return err } - // glog.V(1).Infof("dir %s: %v", dir.Path, attributes) - // glog.V(1).Infof("dir %s permission: %v", dir.Path, os.FileMode(attributes.FileMode)) + glog.V(2).Infof("dir %s: %v perm: %v", dir.Path, attributes, os.FileMode(attributes.FileMode)) attr.Mode = os.FileMode(dir.attributes.FileMode) | os.ModeDir |
