MDL-59572 dml: Call error_log for AJAX/WS calls