From 07d2354af78d4fab21b3acf35281a52f27f92069 Mon Sep 17 00:00:00 2001 From: Ian Morland Date: Tue, 14 Nov 2023 08:39:13 +0000 Subject: [PATCH] fix: remove logging, not neccessary --- src/Listener/ClearCache.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Listener/ClearCache.php b/src/Listener/ClearCache.php index e1c4895..edc0d18 100644 --- a/src/Listener/ClearCache.php +++ b/src/Listener/ClearCache.php @@ -19,17 +19,14 @@ use IanM\HtmlHead\Header; use Illuminate\Contracts\Cache\Repository as Cache; use Illuminate\Contracts\Events\Dispatcher; -use Psr\Log\LoggerInterface; class ClearCache { public $cache; - public $logger; - public function __construct(Cache $cache, LoggerInterface $logger) + public function __construct(Cache $cache) { $this->cache = $cache; - $this->logger = $logger; } public function subscribe(Dispatcher $events) @@ -40,6 +37,5 @@ public function subscribe(Dispatcher $events) public function clearCache($event) { $this->cache->forget(Header::CACHE_KEY); - $this->logger->info('[ianm/html-head] Cleared cache for '.Header::CACHE_KEY.' due to '.get_class($event).' event firing.'); } }