fix(alias): disable log completely (#4054)

pull/4100/head
Andy Hsu 2023-04-09 15:46:26 +08:00
parent c0a6beecea
commit cc43238bd1
1 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,9 @@ func list(ctx context.Context, path string, args *ListArgs) ([]model.Obj, error)
ReqPath: path,
}, args.Refresh)
if err != nil {
log.Errorf("%+v", err)
if !args.NoLog {
log.Errorf("fs/list: %+v", err)
}
if len(virtualFiles) == 0 {
return nil, errors.WithMessage(err, "failed get objs")
}