@@ -2788,7 +2788,7 @@ public void checkAndRepairVolumeBasedOnConfig(DataObject dataObject, Host host)
2788
2788
if (HypervisorType .KVM .equals (host .getHypervisorType ()) && DataObjectType .VOLUME .equals (dataObject .getType ())) {
2789
2789
VolumeInfo volumeInfo = volFactory .getVolume (dataObject .getId ());
2790
2790
if (VolumeApiServiceImpl .AllowCheckAndRepairVolume .valueIn (volumeInfo .getPoolId ())) {
2791
- s_logger .info (String .format ("Trying to check and repair the volume %d" , dataObject .getId ()));
2791
+ logger .info (String .format ("Trying to check and repair the volume %d" , dataObject .getId ()));
2792
2792
String repair = CheckAndRepairVolumeCmd .RepairValues .LEAKS .name ().toLowerCase ();
2793
2793
CheckAndRepairVolumePayload payload = new CheckAndRepairVolumePayload (repair );
2794
2794
volumeInfo .addPayload (payload );
@@ -2822,15 +2822,15 @@ private Pair<String, String> checkAndRepairVolumeThroughHost(VolumeInfo volume,
2822
2822
grantAccess (volume , host , volume .getDataStore ());
2823
2823
CheckAndRepairVolumeAnswer answer = (CheckAndRepairVolumeAnswer ) _storageMgr .sendToPool (pool , new long []{host .getId ()}, command );
2824
2824
if (answer != null && answer .getResult ()) {
2825
- s_logger .debug (String .format ("Check volume response result: %s" , answer .getDetails ()));
2825
+ logger .debug (String .format ("Check volume response result: %s" , answer .getDetails ()));
2826
2826
return new Pair <>(answer .getVolumeCheckExecutionResult (), answer .getVolumeRepairExecutionResult ());
2827
2827
} else {
2828
2828
String errMsg = (answer == null ) ? null : answer .getDetails ();
2829
- s_logger .debug (String .format ("Failed to check and repair the volume with error %s" , errMsg ));
2829
+ logger .debug (String .format ("Failed to check and repair the volume with error %s" , errMsg ));
2830
2830
}
2831
2831
2832
2832
} catch (Exception e ) {
2833
- s_logger .debug ("sending check and repair volume command failed" , e );
2833
+ logger .debug ("sending check and repair volume command failed" , e );
2834
2834
} finally {
2835
2835
revokeAccess (volume , host , volume .getDataStore ());
2836
2836
command .clearPassphrase ();
0 commit comments