NOBUG: Just adding some "database" words here and there to help a bit when debugging...
authorstronk7 <stronk7>
Thu, 1 Oct 2009 15:02:00 +0000 (15:02 +0000)
committerstronk7 <stronk7>
Thu, 1 Oct 2009 15:02:00 +0000 (15:02 +0000)
lib/sessionlib.php

index 5123833..aac9aa0 100644 (file)
@@ -412,7 +412,7 @@ class database_session extends session_stub {
         global $CFG;
 
         if ($this->record and $this->record->sid != $sid) {
-            error_log('Weird error reading session - mismatched sid');
+            error_log('Weird error reading database session - mismatched sid');
             return '';
         }
 
@@ -516,9 +516,9 @@ class database_session extends session_stub {
                     } catch (Exception $ignored) {
 
                     }
-                    error_log('Can not write session - please verify max_allowed_packet is at least 4M!');
+                    error_log('Can not write database session - please verify max_allowed_packet is at least 4M!');
                 } else {
-                    error_log('Can not write session');
+                    error_log('Can not write database session');
                 }
             }
 
@@ -537,7 +537,7 @@ class database_session extends session_stub {
             try {
                 $this->database->get_session_lock($this->record->id);
             } catch (dml_exception $ex) {
-                error_log('Can not write new session');
+                error_log('Can not write new database session');
             }
         }