From a2ef7f73d6365d8feeeb9b98d53e2fbc7379174d Mon Sep 17 00:00:00 2001 From: niekt0 Date: Tue, 25 Jan 2011 17:28:36 +0100 Subject: [PATCH] fixed logging --- wwwroot/inc/log.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wwwroot/inc/log.inc b/wwwroot/inc/log.inc index 5a35b16..628bde5 100644 --- a/wwwroot/inc/log.inc +++ b/wwwroot/inc/log.inc @@ -5,6 +5,8 @@ class logger { global $db,$node; $user_id = isSet($_SESSION['user_id'])?$_SESSION['user_id']:""; + error_log('LOG: user: '.$user_id.', action: '.$action. + ', node_id: '.$node_id.', result: '.$result); // $db->query("insert delayed into logs set event='$action',node_id='$node_id',user_id='$user_id',result='$result',parameter1='$parameter1',parameter2='$parameter2'"); } -- 2.30.2