Skip to content

Commit e83a347

Browse files
julien-vazJulien Hervot de Mattos Vaz
andauthored
Improves StoragePoolAllocators' logs (#10475)
Co-authored-by: Julien Hervot de Mattos Vaz <[email protected]>
1 parent 28ff19b commit e83a347

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

engine/storage/src/main/java/org/apache/cloudstack/storage/allocator/ClusterScopeStoragePoolAllocator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ protected List<StoragePool> select(DiskProfile dskCh, VirtualMachineProfile vmPr
100100
}
101101
StoragePool storagePool = (StoragePool)dataStoreMgr.getPrimaryDataStore(pool.getId());
102102
if (filter(avoid, storagePool, dskCh, plan)) {
103-
logger.debug(String.format("Found suitable cluster storage pool [%s] to allocate disk [%s] to it, adding to list.", pool, dskCh));
103+
logger.debug("Found suitable cluster storage pool [{}] to allocate disk [{}] to it, adding to list.", pool, dskCh);
104104
suitablePools.add(storagePool);
105105
} else {
106106
logger.debug(String.format("Adding storage pool [%s] to avoid set during allocation of disk [%s].", pool, dskCh));

engine/storage/src/main/java/org/apache/cloudstack/storage/allocator/ZoneWideStoragePoolAllocator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ protected List<StoragePool> select(DiskProfile dskCh, VirtualMachineProfile vmPr
9696
}
9797
StoragePool storagePool = (StoragePool)this.dataStoreMgr.getPrimaryDataStore(storage.getId());
9898
if (filter(avoid, storagePool, dskCh, plan)) {
99-
logger.debug(String.format("Found suitable zone wide storage pool [%s] to allocate disk [%s] to it, adding to list.", storagePool, dskCh));
99+
logger.debug("Found suitable zone wide storage pool [{}] to allocate disk [{}] to it, adding to list.", storagePool, dskCh);
100100
suitablePools.add(storagePool);
101101
} else {
102102
if (canAddStoragePoolToAvoidSet(storage)) {

plugins/storage-allocators/random/src/main/java/org/apache/cloudstack/storage/allocator/RandomStoragePoolAllocator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public List<StoragePool> select(DiskProfile dskCh, VirtualMachineProfile vmProfi
6666
StoragePool pol = (StoragePool)this.dataStoreMgr.getPrimaryDataStore(pool.getId());
6767

6868
if (filter(avoid, pol, dskCh, plan)) {
69-
logger.trace(String.format("Found suitable storage pool [%s], adding to list.", pool));
69+
logger.trace("Found suitable storage pool [{}], adding to list.", pool);
7070
suitablePools.add(pol);
7171
}
7272
}

0 commit comments

Comments
 (0)