mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
Add 'disk' tag to log output to enhance 'disk not found' errors (#6460)
This commit is contained in:
committed by
kannappanr
parent
14fa0097b0
commit
a63bc9254d
@@ -78,7 +78,9 @@ func getDisksInfo(disks []StorageAPI) (disksInfo []DiskInfo, onlineDisks int, of
|
||||
}
|
||||
info, err := storageDisk.DiskInfo()
|
||||
if err != nil {
|
||||
logger.LogIf(context.Background(), err)
|
||||
ctx := context.Background()
|
||||
logger.GetReqInfo(ctx).AppendTags("disk", storageDisk.String())
|
||||
logger.LogIf(ctx, err)
|
||||
if IsErr(err, baseErrs...) {
|
||||
offlineDisks++
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user