-
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #47878 [HttpKernel] Remove EOL when using error_log() in HttpKern…
…el Logger (cyve) This PR was squashed before being merged into the 4.4 branch. Discussion ---------- [HttpKernel] Remove EOL when using error_log() in HttpKernel Logger | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | maybe | Tickets | | License | MIT | Doc PR | Hello there ! Since PR symfony/symfony#36855, when using `Symfony\Component\HttpKernel\Log\Logger` with argument `$output = null`. The logger use the `error_log()` method to log messages. But in the log file, messages are separated by an empty line because the default formatter (`Logger::format()`) adds an extra EOL char at the end of the message. This fix prevents the logger to add an extra EOL char when it uses `error_log()`. Possible BC : if someone use the logger with a custom formatter that already add a EOL char at the end of the message, there will be a empty line between messages in the log file. In my opinion, this is minor enough not to worry about it ;-) Thanks for your review :-) Commits ------- 69cf83ea1a [HttpKernel] Remove EOL when using error_log() in HttpKernel Logger
- Loading branch information
Showing
2 changed files
with
32 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters