Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
UB-1098: change logging message to warning instead of info for idempo… (
Browse files Browse the repository at this point in the history
#222)

* UB-1098: change logging message to warning instead of info for idempotent issues*
  • Loading branch information
olgashtivelman authored Jul 9, 2018
1 parent 2e32696 commit d7a5c54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (b *blockDeviceMounterUtils) MountDeviceFlow(devicePath string, fsType stri
if isMounted {
for _, mountpointi := range mountpointRefs {
if mountpointi == mountPoint {
b.logger.Info(WarningMessageIdempotentDeviceAlreadyMounted, logs.Args{{"Device", devicePath}, {"mountpoint", mountPoint}})
b.logger.Warning(WarningMessageIdempotentDeviceAlreadyMounted, logs.Args{{"Device", devicePath}, {"mountpoint", mountPoint}})
return nil // Indicate idempotent issue
}
}
Expand Down
2 changes: 1 addition & 1 deletion remote/mounter/block_device_utils/mpath.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (b *blockDeviceUtils) Discover(volumeWwn string, deepDiscovery bool) (strin
b.logger.Debug(fmt.Sprintf("mpath device was NOT found for WWN [%s] even after sg_inq on all mpath devices.", volumeWwn))
return "", b.logger.ErrorRet(&volumeNotFoundError{volumeWwn}, "failed")
} else {
b.logger.Info(fmt.Sprintf("Warning: device [%s] found for WWN [%s] after running sg_inq on all mpath devices although it was not found in multipath -ll. (Note: Could indicate multipathing issue).", dev, volumeWwn))
b.logger.Warning(fmt.Sprintf("device [%s] found for WWN [%s] after running sg_inq on all mpath devices although it was not found in multipath -ll. (Note: Could indicate multipathing issue).", dev, volumeWwn))
mpath = b.mpathDevFullPath(dev)
}
} else {
Expand Down

0 comments on commit d7a5c54

Please sign in to comment.