From db577d033065d9cbaf45b0c4a0e9d540d1406fbb Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 12 Aug 2008 15:36:10 +0000 Subject: [PATCH] "suppress debug message on session destroy" --- phpgwapi/inc/class.egw_session_memcache.inc.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.egw_session_memcache.inc.php b/phpgwapi/inc/class.egw_session_memcache.inc.php index 5e43692fac..a7ed0296a2 100644 --- a/phpgwapi/inc/class.egw_session_memcache.inc.php +++ b/phpgwapi/inc/class.egw_session_memcache.inc.php @@ -247,9 +247,10 @@ class egw_session_memcache { if (!self::_acquire_and_wait($id)) return false; - error_log("\n memcache destroy $id:$n:"); - for($n=0; self::$memcache->delete($id.($n?'-'.$n:'')); ++$n) ; - + for($n=0; self::$memcache->delete($id.($n?'-'.$n:'')); ++$n) + { + if (self::DEBUG > 0) error_log("******* memcache destroy $id:$n:"); + } self::_release($id); return $n > 0;