mirror of
https://github.com/minio/minio.git
synced 2025-04-21 19:14:39 -04:00
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 {
|
if !dirMatches {
|
||||||
// We have an object `name` or 'name/' and a directory `name/`.
|
// We have an object `name` or 'name/' and a directory `name/`.
|
||||||
if other.isDir() {
|
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.
|
// Discard the directory.
|
||||||
if err := selectFrom(otherIdx); err != nil {
|
if err := selectFrom(otherIdx); err != nil {
|
||||||
return err
|
return err
|
||||||
@ -756,7 +758,9 @@ func mergeEntryChannels(ctx context.Context, in []chan metaCacheEntry, out chan<
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
// Replace directory with object.
|
// 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]
|
toMerge = toMerge[:0]
|
||||||
best = other
|
best = other
|
||||||
bestIdx = otherIdx
|
bestIdx = otherIdx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user