Skip to content

Commit

Permalink
fix(alias): disable log completely (#4054)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Apr 9, 2023
1 parent c0a6bee commit cc43238
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/fs/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit cc43238

Please sign in to comment.