summaryrefslogtreecommitdiffstats
path: root/inc/util.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2015-12-22 19:57:51 +0100
committerSimon Rettberg2015-12-22 19:57:51 +0100
commit061f61a59c3ef7b9209f7318cd060484779b9b8c (patch)
treeb35d853a6d0682c7a807966736729b0bc51a6967 /inc/util.inc.php
parent[statistics] Add table definition, bump db version (diff)
downloadslx-admin-061f61a59c3ef7b9209f7318cd060484779b9b8c.tar.gz
slx-admin-061f61a59c3ef7b9209f7318cd060484779b9b8c.tar.xz
slx-admin-061f61a59c3ef7b9209f7318cd060484779b9b8c.zip
[clientlog] Fix bootup db insert query
Diffstat (limited to 'inc/util.inc.php')
-rw-r--r--inc/util.inc.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/util.inc.php b/inc/util.inc.php
index 06eebfa4..f951290b 100644
--- a/inc/util.inc.php
+++ b/inc/util.inc.php
@@ -12,6 +12,9 @@ class Util
*/
public static function traceError($message)
{
+ if (defined('API')) {
+ error_log('API ERROR: ' . $message);
+ }
Header('HTTP/1.1 500 Internal Server Error');
Header('Content-Type: text/plain; charset=utf-8');
echo "--------------------\nFlagrant system error:\n$message\n--------------------\n\n";