@@ -201,11 +201,11 @@ private function prep_out($data, $crypt_key) {
201201 */
202202 private function configured () {
203203 if (!$ this ->server || !$ this ->port ) {
204- Hm_Debug::add (sprintf ('%s enabled but no server or port found ' , $ this ->type ));
204+ Hm_Debug::add (sprintf ('%s enabled but no server or port found ' , $ this ->type ), ' warning ' );
205205 return false ;
206206 }
207207 if (!$ this ->supported ) {
208- Hm_Debug::add (sprintf ('%s enabled but not supported by PHP ' , $ this ->type ));
208+ Hm_Debug::add (sprintf ('%s enabled but not supported by PHP ' , $ this ->type ), ' warning ' );
209209 return false ;
210210 }
211211 return true ;
@@ -399,7 +399,7 @@ public function __construct($config, $session) {
399399 if (!$ this ->check_redis ($ config ) && !$ this ->check_memcache ($ config )) {
400400 $ this ->check_session ($ config );
401401 }
402- Hm_Debug::add (sprintf ('CACHE backend using: %s ' , $ this ->type ));
402+ Hm_Debug::add (sprintf ('CACHE backend using: %s ' , $ this ->type ), ' info ' );
403403 }
404404
405405 /**
@@ -454,16 +454,16 @@ protected function check_memcache($config) {
454454 protected function log ($ key , $ msg_type ) {
455455 switch ($ msg_type ) {
456456 case 'save ' :
457- Hm_Debug::add (sprintf ('CACHE: saving "%s" using %s ' , $ key , $ this ->type ));
457+ Hm_Debug::add (sprintf ('CACHE: saving "%s" using %s ' , $ key , $ this ->type ), ' info ' );
458458 break ;
459459 case 'hit ' :
460- Hm_Debug::add (sprintf ('CACHE: hit for "%s" using %s ' , $ key , $ this ->type ));
460+ Hm_Debug::add (sprintf ('CACHE: hit for "%s" using %s ' , $ key , $ this ->type ), ' info ' );
461461 break ;
462462 case 'miss ' :
463- Hm_Debug::add (sprintf ('CACHE: miss for "%s" using %s ' , $ key , $ this ->type ));
463+ Hm_Debug::add (sprintf ('CACHE: miss for "%s" using %s ' , $ key , $ this ->type ), ' warning ' );
464464 break ;
465465 case 'del ' :
466- Hm_Debug::add (sprintf ('CACHE: deleting "%s" using %s ' , $ key , $ this ->type ));
466+ Hm_Debug::add (sprintf ('CACHE: deleting "%s" using %s ' , $ key , $ this ->type ), ' info ' );
467467 break ;
468468 }
469469 }
@@ -633,7 +633,7 @@ public function __construct($config, $session) {
633633 */
634634 public function setup_cache () {
635635 $ cache_class = $ this ->get_cache_class ();
636- Hm_Debug::add (sprintf ('Using %s for cache ' , $ cache_class ));
636+ Hm_Debug::add (sprintf ('Using %s for cache ' , $ cache_class ), ' info ' );
637637 return new $ cache_class ($ this ->config , $ this ->session );
638638 }
639639
0 commit comments