@@ -102,15 +102,7 @@ def get(self, key, default = None):
102102 def get_multi (self , keys , prefix = '' ):
103103 str_keys = [str (key ) for key in keys ]
104104 with self .clients .reserve () as mc :
105- result = mc .get_multi (str_keys , key_prefix = prefix )
106- # Debug logging for cache investigation
107- if str_keys and str_keys [0 ].startswith ('rend:' ):
108- try :
109- g .log .warning ("CMemcache.get_multi: %d keys requested, %d hits. Sample key: %s" ,
110- len (str_keys ), len (result ), str_keys [0 ][:80 ])
111- except Exception :
112- pass # Ignore logging errors during reload
113- return result
105+ return mc .get_multi (str_keys , key_prefix = prefix )
114106
115107 # simple_get_multi exists so that a cache chain can
116108 # single-instance the handling of prefixes for performance, but
@@ -134,15 +126,6 @@ def set_multi(self, keys, prefix='', time=0):
134126 raise ValueError ("Rejecting negative TTL for key %s" % key )
135127
136128 str_keys = {str (k ): v for k , v in keys .items ()}
137- # Debug logging for cache investigation
138- if str_keys :
139- sample_key = list (str_keys .keys ())[0 ]
140- if sample_key .startswith ('rend:' ):
141- try :
142- g .log .warning ("CMemcache.set_multi: %d keys, time=%d. Sample key: %s, value type: %s" ,
143- len (str_keys ), time , sample_key [:80 ], type (list (str_keys .values ())[0 ]).__name__ )
144- except Exception :
145- pass # Ignore logging errors during reload
146129 with self .clients .reserve () as mc :
147130 return mc .set_multi (str_keys , key_prefix = prefix , time = time ,
148131 min_compress_len = self .min_compress_len )
0 commit comments