Skip to content
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

For when the date changes during a long process. #1312

Closed
wants to merge 1 commit into from

Conversation

yasutomog
Copy link
Contributor

Laravel uses an instance of Handler in one process.

When using "RotatingFileHandler", if the date changes in one process, the error "Could not be opened: failed to open stream: No such file or directory in" is occured.

The date is checked with the "write" function of "RotatingFileHandler". If the date has changed, closing the file. However, "$dirCreated" of "StreamHandler" remains True. Therefore, a new directory can not be created and an error occurs.

Fixed "$dirCreated" to its initial value when closing a file.

@Seldaek
Copy link
Owner

Seldaek commented Jul 2, 2019

Merged in 1.x/master as ab7e54e - thanks!

@Seldaek Seldaek closed this Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants