mirror of https://github.com/minio/minio.git
turn-off unexpected debug logging in List() calls (#19903)
This commit is contained in:
parent
f933b0b708
commit
6c7a21df6b
|
@ -748,7 +748,9 @@ func mergeEntryChannels(ctx context.Context, in []chan metaCacheEntry, out chan<
|
|||
if !dirMatches {
|
||||
// We have an object `name` or 'name/' and a directory `name/`.
|
||||
if other.isDir() {
|
||||
console.Debugln("mergeEntryChannels: discarding directory", other.name, "for object", best.name)
|
||||
if serverDebugLog {
|
||||
console.Debugln("mergeEntryChannels: discarding directory", other.name, "for object", best.name)
|
||||
}
|
||||
// Discard the directory.
|
||||
if err := selectFrom(otherIdx); err != nil {
|
||||
return err
|
||||
|
@ -756,7 +758,9 @@ func mergeEntryChannels(ctx context.Context, in []chan metaCacheEntry, out chan<
|
|||
continue
|
||||
}
|
||||
// Replace directory with object.
|
||||
console.Debugln("mergeEntryChannels: discarding directory", best.name, "for object", other.name)
|
||||
if serverDebugLog {
|
||||
console.Debugln("mergeEntryChannels: discarding directory", best.name, "for object", other.name)
|
||||
}
|
||||
toMerge = toMerge[:0]
|
||||
best = other
|
||||
bestIdx = otherIdx
|
||||
|
|
Loading…
Reference in New Issue