Browse Source

adjust error logs

pull/1427/head
Chris Lu 4 years ago
parent
commit
ecb3ce46be
  1. 2
      weed/filer2/filer_delete_entry.go

2
weed/filer2/filer_delete_entry.go

@ -65,7 +65,7 @@ func (f *Filer) doBatchDeleteFolderMetaAndData(ctx context.Context, entry *Entry
}
if lastFileName == "" && !isRecursive && len(entries) > 0 {
// only for first iteration in the loop
glog.Errorf("deleting a folder %s has children: %+v", entry.FullPath, entries)
glog.Errorf("deleting a folder %s has children: %+v ...", entry.FullPath, entries[0].Name())
return nil, fmt.Errorf("fail to delete non-empty folder: %s", entry.FullPath)
}

Loading…
Cancel
Save