From bcca19cee0ed507f342d39688a071e7c989393d8 Mon Sep 17 00:00:00 2001 From: axell-brendow Date: Wed, 22 Jul 2020 13:06:59 -0300 Subject: [PATCH 1/2] Improve exception message This exception is commonly thrown in Laravel applications when using Docker. But it is not clear why the system could not open a file that has read permission for all users. So, when I came to the code of Monolog I saw that you try to open it in append mode, so I think that just adding this information could help a lot other users. --- src/Monolog/Handler/StreamHandler.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Monolog/Handler/StreamHandler.php b/src/Monolog/Handler/StreamHandler.php index 7c0dfd22..b52607d2 100644 --- a/src/Monolog/Handler/StreamHandler.php +++ b/src/Monolog/Handler/StreamHandler.php @@ -106,7 +106,8 @@ class StreamHandler extends AbstractProcessingHandler restore_error_handler(); if (!is_resource($this->stream)) { $this->stream = null; - throw new \UnexpectedValueException(sprintf('The stream or file "%s" could not be opened: '.$this->errorMessage, $this->url)); + + throw new \UnexpectedValueException(sprintf('The stream or file "%s" could not be opened in append mode: '.$this->errorMessage, $this->url)); } } From 1817faadd1846cd08be9a49e905dc68823bc38c0 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 23 Jul 2020 10:35:51 +0200 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 31512f01..757643df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +### 1.25.5 (2020-07-23) + + * Fixed array access on null in RavenHandler + * Fixed unique_id in WebProcessor not being disableable + ### 1.25.4 (2020-05-22) * Fixed GitProcessor type error when there is no git repo present