lonnieezell / Bonfire

Jumpstart your CodeIgniter web applications with a modular, HMVC-ready, backend.
http://cibonfire.com
1.39k stars 524 forks source link

Error log doesn't show function or controller called #1301

Open brianmolidor opened 6 years ago

brianmolidor commented 6 years ago

In the Bonfire Error Log when a script is too large for memory i get errors like this:

ERROR - 2018-08-01 10:21:17 --> Severity: Error --> Allowed memory size of 268435456 bytes exhausted (tried to allocate 69690176 bytes) /bonfire/ci3/core/Output.php 447

ERROR - 2018-08-01 11:46:55 --> Severity: Error --> Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) /bonfire/ci3/database/drivers/mysqli/mysqli_result.php 168

I have hundreds of cronjobs running, I can't easily tell what ones are failing. Is it possible to get what controller function was called vs what lib failed? What file would I need to update to have that included?

pascut commented 6 years ago

On those lines:

/bonfire/ci3/core/Output.php 447

and

/bonfire/ci3/database/drivers/mysqli/mysqli_result.php 168

You should add logs, so you'll know what function was called. See this page for more details: https://www.codeigniter.com/user_guide/general/errors.html#log_message