-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Fixes #2725 : move logging directory path config to CodeIgniter\Log\Handlers\FileHandler config #2726
Conversation
…gniter\Log\Handlers\FileHandler config
…SupportLogHandlersTestHandler]
…er][path] instead of config->path
Got error in test : "fopen(vfs://root/log-2020-03-20.log): failed to open stream: "org\bovigo\vfs\vfsStreamWrapper::stream_open" call failed". It seems the vfsStream() put -> read requires tweak. |
The test has been tweaked for writing file with vfsStream |
travis build green 🎉 |
This looks good to me. There should be no need for |
I close re-open the PR to re-trigger travis build |
@dafriend I applied your suggestion, travis build green 🎉 |
I think this change makes sense. My initial reaction was that it was a BC change that would cause a new MAJOR release, which we don't want to do. But I think another PR just removed that anyway, since it wasn't being used, and this doesn't affect the API so I think we're OK. Will merge. |
Fixes #2725 . The Logger::$path config never get as it tried to access the path config in "CodeIgniter\Log\Handlers\FileHandler" config under Logger::$handlers property. Also, the
??
parameter make test for nullable/not isset, while it check the empty string value. Now, to avoid BC break, I use the following flow:Checklist: