Errors on Ajax requests don't get logged

5 years ago

jan-kratochvil
Member | 14
+
0
-

Hi all,

when I encounter 500 server error on ajax request, it doesn't get logged to log dir. If I open the same URL directly (no ajax, normal request) I see Server error page (Sorry…) and the error is logged correctly. Can you please help me with this problem?
Thank you Jan

5 years ago

Filip Procházka
Moderator | 4693
+
+1
-

Hi, make sure you have the right ErrorPresenter, few months ago, there was a condition, that was preving the logging of AJAX errors.

4 years ago

jan-kratochvil
Member | 14
+
0
-

Thank you, it was the problem!

I had code in ErrorPresenter, that detected ajax, and Debugger::log was missing…