-
-
Notifications
You must be signed in to change notification settings - Fork 14
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make sure /tmp/log
dir exists
#43
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for starting this!
Just a minor comment.
Could you also add tests that tries to write to the log dir directly ? I'd say one in an http context and one in a console context.
We had some differences in the past between the lifecycle of the Kernel in console and in http, so better be on the safe side of things 🙂
You can take a look at existing tests, they already do that (run the console and http request).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On top of @t-richard's comment about tests, I've added minor feedback.
Thanks a lot for taking the time to fix this!
* Even though applications should never write into it on Lambda, there are parts of Symfony | ||
* (like "about" CLI command) that expect the log dir exists, so we have to make sure of it. | ||
* | ||
* @see https://github.com/brefphp/symfony-bridge/issues/42 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome thanks for the comment, that makes maintenance much easier!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just small naming things.
But it looks good to me, thanks @vhenzl !
Thank you @vhenzl and @t-richard! |
Resolves #42.