[geeklog-cvs] geeklog: Fixed verbose logging - always need to call COM_errorLo...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun Apr 25 12:33:32 EDT 2010


changeset 7895:e36b7376ad31
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/e36b7376ad31
user: Dirk Haun <dirk at haun-online.de>
date: Sat Apr 24 21:46:43 2010 +0200
description:
Fixed verbose logging - always need to call COM_errorLog(..., 1)

diffstat:

 system/lib-sessions.php |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (42 lines):

diff -r 7a72cb046113 -r e36b7376ad31 system/lib-sessions.php
--- a/system/lib-sessions.php	Sat Apr 24 19:28:28 2010 +0200
+++ b/system/lib-sessions.php	Sat Apr 24 21:46:43 2010 +0200
@@ -2,13 +2,13 @@
 
 /* Reminder: always indent with 4 spaces (no tabs). */
 // +---------------------------------------------------------------------------+
-// | Geeklog 1.6                                                               |
+// | Geeklog 1.7                                                               |
 // +---------------------------------------------------------------------------+
 // | lib-sessions.php                                                          |
 // |                                                                           |
 // | Geeklog session library.                                                  |
 // +---------------------------------------------------------------------------+
-// | Copyright (C) 2000-2009 by the following authors:                         |
+// | Copyright (C) 2000-2010 by the following authors:                         |
 // |                                                                           |
 // | Authors: Tony Bibbs       - tony AT tonybibbs DOT com                     |
 // |          Mark Limburg     - mlimburg AT users DOT sourceforge DOT net     |
@@ -359,7 +359,7 @@
     }
 
     if ($_SESS_VERBOSE) {
-        COM_errorLog("SQL in SESS_getUserIdFromSession is:\n $sql\n");
+        COM_errorLog("SQL in SESS_getUserIdFromSession is:\n $sql\n", 1);
     }
 
     $result = DB_query($sql);
@@ -440,11 +440,11 @@
         . "{$_TABLES['userprefs']}.uid = {$_TABLES['users']}.uid AND username = '$username'";
 
     if(!$result = DB_query($sql)) {
-        COM_errorLog("error in get_userdata");
+        COM_errorLog("error in get_userdata", 1);
     }
 
     if(!$myrow = DB_fetchArray($result)) {
-        COM_errorLog("error in get_userdata");
+        COM_errorLog("error in get_userdata", 1);
     }
 
     return($myrow);



More information about the geeklog-cvs mailing list