mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 01:32:18 +02:00
logger issues
This commit is contained in:
parent
c31aebc188
commit
66c10bf42f
@ -256,7 +256,7 @@ public class LinstorStorageAdaptor implements StorageAdaptor {
|
||||
rdm.setOverrideProps(props);
|
||||
ApiCallRcList answers = api.resourceDefinitionModify(rscName, rdm);
|
||||
if (answers.hasError()) {
|
||||
s_logger.error("Unable to set 'allow-two-primaries' on " + rscName);
|
||||
logger.error("Unable to set 'allow-two-primaries' on {} ", rscName);
|
||||
// do not fail here as adding allow-two-primaries property is only a problem while live migrating
|
||||
}
|
||||
}
|
||||
|
||||
@ -200,7 +200,7 @@ public class LinstorUtil {
|
||||
return rscs.stream()
|
||||
.anyMatch(rsc -> rsc.getState() != null && Boolean.TRUE.equals(rsc.getState().isInUse()));
|
||||
}
|
||||
s_logger.error("isResourceInUse: null returned from resourceList");
|
||||
LOGGER.error("isResourceInUse: null returned from resourceList");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -351,9 +351,7 @@ public class IpAddressManagerImpl extends ManagerBase implements IpAddressManage
|
||||
if (possibleAddr.getState() != State.Free) {
|
||||
continue;
|
||||
}
|
||||
if (s_logger.isDebugEnabled()) {
|
||||
s_logger.debug(String.format("trying ip address %s", possibleAddr.getAddress()));
|
||||
}
|
||||
logger.debug("trying ip address {}", possibleAddr.getAddress());
|
||||
possibleAddr.setSourceNat(sourceNat);
|
||||
possibleAddr.setAllocatedTime(new Date());
|
||||
possibleAddr.setAllocatedInDomainId(owner.getDomainId());
|
||||
@ -396,19 +394,15 @@ public class IpAddressManagerImpl extends ManagerBase implements IpAddressManage
|
||||
IPAddressVO finalAddress = null;
|
||||
IPAddressVO userIp = _ipAddressDao.acquireInLockTable(possibleAddr.getId());
|
||||
if (userIp != null) {
|
||||
if (s_logger.isDebugEnabled()) {
|
||||
s_logger.debug(String.format("locked row for ip address %s (id: %s)", possibleAddr.getAddress(), possibleAddr.getUuid()));
|
||||
}
|
||||
logger.debug("locked row for ip address {} (id: {})", possibleAddr.getAddress(), possibleAddr.getUuid());
|
||||
if (userIp.getState() == State.Free) {
|
||||
possibleAddr.setState(State.Allocating);
|
||||
if (_ipAddressDao.update(possibleAddr.getId(), possibleAddr)) {
|
||||
s_logger.info(String.format("successfully allocated ip address %s", possibleAddr.getAddress()));
|
||||
logger.info("successfully allocated ip address {}", possibleAddr.getAddress());
|
||||
finalAddress = possibleAddr;
|
||||
}
|
||||
} else {
|
||||
if (s_logger.isDebugEnabled()) {
|
||||
s_logger.debug(String.format("locked ip address %s is not free (%s)", possibleAddr.getAddress(), userIp.getState()));
|
||||
}
|
||||
logger.debug("locked ip address {} is not free {}", possibleAddr.getAddress(), userIp.getState());
|
||||
}
|
||||
_ipAddressDao.releaseFromLockTable(possibleAddr.getId());
|
||||
}
|
||||
@ -659,7 +653,7 @@ public class IpAddressManagerImpl extends ManagerBase implements IpAddressManage
|
||||
if (!continueOnError) {
|
||||
throw e;
|
||||
}
|
||||
logger.warn("Problems with applying " + purpose + " rules but pushing on", e);
|
||||
logger.warn("Problems with applying {} rules but pushing on", purpose, e);
|
||||
success = false;
|
||||
}
|
||||
|
||||
|
||||
@ -3107,7 +3107,7 @@ public class NfsSecondaryStorageResource extends ServerResourceBase implements S
|
||||
}
|
||||
|
||||
String extraOptions = extraOpts.toString();
|
||||
logger.debug("extraOpts now ", ()->StringUtils.cleanString(extraOptions));
|
||||
logger.debug("extraOpts now {}", ()->StringUtils.cleanString(extraOptions));
|
||||
|
||||
if (!foundUser || !foundPswd) {
|
||||
String errMsg = "Missing user and password from URI. Make sure they" + "are in the query string and separated by '&'. E.g. "
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user