From ccd48218ca74bd7cdd0b4f7a2fc82a1f31b740df Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 8 Sep 2016 11:09:23 +0200 Subject: [Util] traceError: Use error_log for AJAX calls, just like API --- inc/util.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/util.inc.php') diff --git a/inc/util.inc.php b/inc/util.inc.php index a9ae384c..e6f4ca8f 100644 --- a/inc/util.inc.php +++ b/inc/util.inc.php @@ -12,7 +12,7 @@ class Util */ public static function traceError($message) { - if (defined('API') && API) { + if ((defined('API') && API) || (defined('AJAX') && AJAX)) { error_log('API ERROR: ' . $message); error_log(self::formatBacktracePlain(debug_backtrace())); } -- cgit v1.2.3-55-g7522