No error messages shown in log when Debug off. It should be like that?

I just noticed that when 500 errors happen for any reason ( “A server error occurred, etc.”) there are no records of this event shown in the app log, if Debug mode disabled.

I actually don’t remember if it was always like this.
How is it actually supposed to be?

When debug is off you will se only a 500 error but no details about it. This is because it can
show sensitive information to people with bad intensions. So in production always turn debug off.

That I understand. The problem is, I don’t even see 500 error message itself.
I mean, I see it in browser, but I don’t see it in webserver logs.

From what I remember, this is the default behaviour.

1 Like