mirror of https://github.com/Xhofe/alist
fix(alias): disable log completely (#4054)
parent
c0a6beecea
commit
cc43238bd1
|
@ -26,7 +26,9 @@ func list(ctx context.Context, path string, args *ListArgs) ([]model.Obj, error)
|
||||||
ReqPath: path,
|
ReqPath: path,
|
||||||
}, args.Refresh)
|
}, args.Refresh)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("%+v", err)
|
if !args.NoLog {
|
||||||
|
log.Errorf("fs/list: %+v", err)
|
||||||
|
}
|
||||||
if len(virtualFiles) == 0 {
|
if len(virtualFiles) == 0 {
|
||||||
return nil, errors.WithMessage(err, "failed get objs")
|
return nil, errors.WithMessage(err, "failed get objs")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue