CodeIgniter icon indicating copy to clipboard operation
CodeIgniter copied to clipboard

log show_error messages

Open bunglegrind opened this issue 3 years ago • 1 comments

I would like to propose a simple feature addition: in analogy to show_404(), CI should log automatically every call to show_error() with option to skip if FALSE is passed as last parameter to show_error()

bunglegrind avatar Apr 08 '22 15:04 bunglegrind

Well, currently show_error() has no logging and has already 3 parameters, with 2 of them having default values.

I'm not 100% sure what is your context, but methods like show_404() and show_error() should deal only with showing an error page to the browser, not logging, but I guess for show_404() it was a previous decision that is grandfathered today.

Maybe Andrey can give his thoughts on this one as well.

gxgpet avatar Jun 09 '22 22:06 gxgpet