From: niekt0 Date: Tue, 25 Jan 2011 16:28:36 +0000 (+0100) Subject: fixed logging X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=a2ef7f73d6365d8feeeb9b98d53e2fbc7379174d;p=mirrors%2FKyberia-bloodline.git fixed logging --- 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'"); }