Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

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

Open
brianmolidor opened this issue Aug 1, 2018 · 1 comment
Open

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

brianmolidor opened this issue Aug 1, 2018 · 1 comment

Comments

@brianmolidor
Copy link

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
Copy link

pascut commented Aug 20, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants