Skip to content

Commit 87553a6

Browse files
committed
remove log warnings on Request macro registrations, as framework could be bootstrapped twice (e.g. on php artisan config:cache)
1 parent b30d6f7 commit 87553a6

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/CorrelationIdServiceProvider.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ protected function bootRequestGetUniqueIdMacro(): void
9191

9292
return $this->attributes->get('uuid');
9393
});
94-
} else {
95-
Log::warning('Request::getUniqueId() already exists, skipping macro registration.');
9694
}
9795
}
9896

@@ -107,8 +105,6 @@ protected function bootRequestGetCorrelationIdMacro(): void
107105
// Sanitize the correlation id as a safety precaution
108106
return preg_replace(CorrelationIdServiceProvider::$sanitize, '', $this->header(CorrelationIdServiceProvider::getCorrelationIdHeaderName()));
109107
});
110-
} else {
111-
Log::warning('Request::getCorrelationId() already exists, skipping macro registration.');
112108
}
113109
}
114110

@@ -123,8 +119,6 @@ protected function bootRequestGetClientRequestIdMacro(): void
123119
// Sanitize the correlation id as a safety precaution
124120
return preg_replace(CorrelationIdServiceProvider::$sanitize, '', $this->header(CorrelationIdServiceProvider::getClientRequestIdHeaderName()));
125121
});
126-
} else {
127-
Log::warning('Request::getClientRequestId() already exists, skipping macro registration.');
128122
}
129123
}
130124
}

0 commit comments

Comments
 (0)