Errors on Ajax requests don't get logged

Notice: This thread is very old.
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

Filip Procházka
Moderator | 4668
+
+1
-

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

jan-kratochvil
Member | 14
+
0
-

Thank you, it was the problem!

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