From 87553a67f59c63c12dd970b05950810a630dda81 Mon Sep 17 00:00:00 2001 From: Philip Iezzi Date: Wed, 11 Dec 2024 11:28:47 +0100 Subject: [PATCH] remove log warnings on Request macro registrations, as framework could be bootstrapped twice (e.g. on `php artisan config:cache`) --- src/CorrelationIdServiceProvider.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/CorrelationIdServiceProvider.php b/src/CorrelationIdServiceProvider.php index 4f1cb25..3664f19 100644 --- a/src/CorrelationIdServiceProvider.php +++ b/src/CorrelationIdServiceProvider.php @@ -91,8 +91,6 @@ protected function bootRequestGetUniqueIdMacro(): void return $this->attributes->get('uuid'); }); - } else { - Log::warning('Request::getUniqueId() already exists, skipping macro registration.'); } } @@ -107,8 +105,6 @@ protected function bootRequestGetCorrelationIdMacro(): void // Sanitize the correlation id as a safety precaution return preg_replace(CorrelationIdServiceProvider::$sanitize, '', $this->header(CorrelationIdServiceProvider::getCorrelationIdHeaderName())); }); - } else { - Log::warning('Request::getCorrelationId() already exists, skipping macro registration.'); } } @@ -123,8 +119,6 @@ protected function bootRequestGetClientRequestIdMacro(): void // Sanitize the correlation id as a safety precaution return preg_replace(CorrelationIdServiceProvider::$sanitize, '', $this->header(CorrelationIdServiceProvider::getClientRequestIdHeaderName())); }); - } else { - Log::warning('Request::getClientRequestId() already exists, skipping macro registration.'); } } }