-
Notifications
You must be signed in to change notification settings - Fork 10
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
Question regarding reservedMemory var #4
Comments
Hi, @JayBizzle ! Thanks for your kind words! :) I'm reserving a bit of memory (while registering shutdown function), to have an ability to execute all required operations while handling "Fatal Error: Allowed Memory Size of ... Bytes Exhausted". If you take a look on handling method: laravel-console-logger/src/Exceptions/ExceptionHandler.php Lines 54 to 71 in 7ae85f6
You'll see, that the first thing I do - is releasing that memory:
And after that, I'm able to do all stuff, which you can see there below (which requires a bit of memory too). PS: I've saw that trick at Monolog actually, so hat tips to Monolog :) |
Thanks for taking the time to explain 👍 |
Hi,
Thanks for this great package. I was just looking through the code and wondered if you could explain what the following line is for.
laravel-console-logger/src/Exceptions/ExceptionHandler.php
Line 49 in 829418a
Thanks
The text was updated successfully, but these errors were encountered: