We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d8d5f7 commit 2dcc960Copy full SHA for 2dcc960
src/Illuminate/Foundation/Exceptions/Handler.php
@@ -302,7 +302,7 @@ protected function reportThrowable(Throwable $e): void
302
}
303
304
try {
305
- $logger = $this->container->make(LoggerInterface::class);
+ $logger = $this->newLogger();
306
} catch (Exception) {
307
throw $e;
308
@@ -872,4 +872,14 @@ protected function isHttpException(Throwable $e)
872
{
873
return $e instanceof HttpExceptionInterface;
874
875
+
876
+ /**
877
+ * Create a new logger instance.
878
+ *
879
+ * @return \Psr\Log\LoggerInterface
880
+ */
881
+ protected function newLogger()
882
+ {
883
+ return $this->container->make(LoggerInterface::class);
884
+ }
885
0 commit comments