[pLog-svn] r1724 - in plog/branches/plog-1.1-ben/class: cache config object

ork at devel.plogworld.net ork at devel.plogworld.net
Tue Apr 5 00:01:06 GMT 2005


Author: ork
Date: 2005-04-05 00:00:59 +0000 (Tue, 05 Apr 2005)
New Revision: 1724

Modified:
   plog/branches/plog-1.1-ben/class/cache/cache.class.php
   plog/branches/plog-1.1-ben/class/config/configdbstorage.class.php
   plog/branches/plog-1.1-ben/class/object/object.class.php
Log:
we'll keep loggin on by default as long as this is unstable.. 


Modified: plog/branches/plog-1.1-ben/class/cache/cache.class.php
===================================================================
--- plog/branches/plog-1.1-ben/class/cache/cache.class.php	2005-04-05 00:00:20 UTC (rev 1723)
+++ plog/branches/plog-1.1-ben/class/cache/cache.class.php	2005-04-05 00:00:59 UTC (rev 1724)
@@ -21,17 +21,17 @@
         function setData( $id, $group, $data )
         {
             return $this->cache->save( $data, $id, $group );
-//                $this->log->info("Caching $id ($group):" . $data );
+            $this->log->info("Caching $id ($group):" . $data );
         }
 
         function getData( $id, $group )
         {
             $inCache = $this->cache->get( $id, $group );
-//            if ($inCache) {
-//                $this->log->info("Cache hit for $id ($group):" . $data );
-//            } else {
-//                $this->log->info("Cache miss for $id ($group)" );
-//            }
+            if ($inCache) {
+                $this->log->info("Cache hit for $id ($group):" . $data );
+            } else {
+                $this->log->info("Cache miss for $id ($group)" );
+            }
             return $inCache;
         }
 

Modified: plog/branches/plog-1.1-ben/class/config/configdbstorage.class.php
===================================================================
--- plog/branches/plog-1.1-ben/class/config/configdbstorage.class.php	2005-04-05 00:00:20 UTC (rev 1723)
+++ plog/branches/plog-1.1-ben/class/config/configdbstorage.class.php	2005-04-05 00:00:59 UTC (rev 1724)
@@ -135,7 +135,7 @@
                 }
             }
 
-            if(array_key_exists($key, $this->_data)) {
+            if( array_key_exists($key, $this->_data) ) {
                 if ($this->_data[$key] == "" || $this->_data[$key] == null) {
                     return $defaultValue;
                 } else {

Modified: plog/branches/plog-1.1-ben/class/object/object.class.php
===================================================================
--- plog/branches/plog-1.1-ben/class/object/object.class.php	2005-04-05 00:00:20 UTC (rev 1723)
+++ plog/branches/plog-1.1-ben/class/object/object.class.php	2005-04-05 00:00:59 UTC (rev 1724)
@@ -24,7 +24,7 @@
     if(PHP_VERSION < 5)
 	    include_once( PLOG_CLASS_PATH."class/object/exception.class.php" );
 
-	// include_once( PLOG_CLASS_PATH."class/logger/loggermanager.class.php" );
+	include_once( PLOG_CLASS_PATH."class/logger/loggermanager.class.php" );
     include_once( PLOG_CLASS_PATH."debug.php" );
 	
 	/**
@@ -57,9 +57,9 @@
 		function Object()
 		{
 			// initialize logging -- enable this only for debugging purposes
-			// $this->log =& LoggerManager::getLogger( "default" );
-            if (is_object($this->log))
-                $this->log->debug('Memory used: ' . memory_get_usage());
+			$this->log =& LoggerManager::getLogger( "default" );
+            // if (is_object($this->log))
+            //     $this->log->debug('Memory used: ' . memory_get_usage());
 		}
 
         function __getObjectId()




More information about the pLog-svn mailing list