Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[HttpKernel] Remove EOL when using error_log() in HttpKernel Logger#47878
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
carsonbot commentedOct 16, 2022
Hey! I see that this is your first PR. That is great! Welcome! Symfony has acontribution guide which I suggest you to read. In short:
Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change. When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor! I am going to sit back now and wait for the reviews. Cheers! Carsonbot |
d6de97d to051e16cComparecyve commentedOct 16, 2022
Hi, I added a 2nd commit to apply coding standards on code that was not modified by the PR itself. Should I squash them ? |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
051e16c to69cf83eComparenicolas-grekas commentedOct 18, 2022
Thank you@cyve. |
Hello there !
Since PR#36855, when using
Symfony\Component\HttpKernel\Log\Loggerwith argument$output = null. The logger use theerror_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 :-)