Skip to content
This repository was archived by the owner on Aug 15, 2023. It is now read-only.

Commit 99a1839

Browse files
committed
[TASK] using sprintf for logger message too
1 parent b11581c commit 99a1839

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Classes/Command/CacheApiCommandController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function injectCacheApiService(\Etobi\CoreAPI\Service\CacheApiService $ca
8484
public function clearAllCachesCommand($hard = false) {
8585
$this->cacheApiService->clearAllCaches($hard);
8686
$message = 'All caches have been cleared%s.';
87-
$this->logger->info($message);
87+
$this->logger->info(sprintf($message, $hard ? ' hard' : ''));
8888
$this->outputLine($message, $hard ? array(' hard') : array(''));
8989
}
9090

@@ -158,4 +158,4 @@ public function clearAllExceptPageCacheCommand() {
158158
$this->logger->info($message);
159159
$this->outputLine($message);
160160
}
161-
}
161+
}

0 commit comments

Comments
 (0)