diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/util.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/util.inc.php b/inc/util.inc.php index 697ae3f9..9bcfdf13 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) || (defined('AJAX') && AJAX)) { + if ((defined('API') && API) || (defined('AJAX') && AJAX) || php_sapi_name() === 'cli') { error_log('API ERROR: ' . $message); error_log(self::formatBacktracePlain(debug_backtrace())); } |