kvm: fix misleading error log (#5396)

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2021-09-08 10:10:21 +05:30 committed by GitHub
parent b13930f946
commit 3d16584fa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,7 @@ public class KVMStoragePoolManager {
StorageAdaptorInfo info = storageAdaptor.getAnnotation(StorageAdaptorInfo.class);
if (info != null && info.storagePoolType() != null) {
if (this._storageMapper.containsKey(info.storagePoolType().toString())) {
s_logger.error("Duplicate StorageAdaptor type " + info.storagePoolType().toString() + ", not loading " + storageAdaptor.getName());
s_logger.warn(String.format("Duplicate StorageAdaptor type %s, not loading %s", info.storagePoolType().toString(), storageAdaptor.getName()));
} else {
try {
this._storageMapper.put(info.storagePoolType().toString(), storageAdaptor.newInstance());