mirror of
https://github.com/minio/minio.git
synced 2025-11-28 05:04:14 -05:00
turn-off unexpected debug logging in List() calls (#19903)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user