Commit 9fb3dab93eedef06cd8b93500deee195204d2259

Authored by Conrad Vermeulen
1 parent ba2d0a0a

KTS-2360

"Remove cache logging."
Updated.

Committed By: Conrad Vermeulen
Reviewed By: Kevin Fourie

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7345 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 3 additions and 3 deletions
lib/session/Session.inc
... ... @@ -187,12 +187,12 @@ class Session {
187 187 $version = KTUtil::getSystemSetting('databaseVersion');
188 188  
189 189 if ($default->systemVersion != $version) {
190   - $default->log->info("Session::verify : Database not upgraded");
  190 + if (KTLOG_CACHE) $default->log->info("Session::verify : Database not upgraded");
191 191 return PEAR::raiseError(sprintf(_kt('Incompatible database version (%s, expected version %s) - contact the administrator'), $version, $default->systemVersion));
192 192 }
193 193  
194 194 if (empty($sessionID)) {
195   - $default->log->info("Session::verify session not in db");
  195 + if (KTLOG_CACHE) $default->log->info("Session::verify session not in db");
196 196 return PEAR::raiseError(_kt('You need to login to access this page'));
197 197 }
198 198  
... ... @@ -204,7 +204,7 @@ class Session {
204 204 // FIXME: if there aren't more rows that the max sessions for this user
205 205 if ($numrows < 1) {
206 206 // the session doesn't exist in the db
207   - $default->log->info("Session::verify sessionID=$sessionID, not in db");
  207 + if (KTLOG_CACHE) $default->log->info("Session::verify sessionID=$sessionID, not in db");
208 208 return PEAR::raiseError(_kt('You need to login to access this page'));
209 209 return false;
210 210 }
... ...