##// END OF EJS Templates
logging: use just func names for logs instead of objects with memory address (doesn't give any valueable info)
marcink -
r778:eaf5cd79 default
parent child
Show More
@@ -51,7 +51,7 class RhodeCodeCacheRegion(CacheRegion):
51 def get_or_create_for_user_func(key_generator, user_func, *arg, **kw):
51 def get_or_create_for_user_func(key_generator, user_func, *arg, **kw):
52
52
53 if not condition:
53 if not condition:
54 log.debug('Calling un-cached func:%s', user_func)
54 log.debug('Calling un-cached func:%s', user_func.func_name)
55 return user_func(*arg, **kw)
55 return user_func(*arg, **kw)
56
56
57 key = key_generator(*arg, **kw)
57 key = key_generator(*arg, **kw)
@@ -59,7 +59,7 class RhodeCodeCacheRegion(CacheRegion):
59 timeout = expiration_time() if expiration_time_is_callable \
59 timeout = expiration_time() if expiration_time_is_callable \
60 else expiration_time
60 else expiration_time
61
61
62 log.debug('Calling cached fn:%s', user_func)
62 log.debug('Calling cached fn:%s', user_func.func_name)
63 return self.get_or_create(key, user_func, timeout, should_cache_fn, (arg, kw))
63 return self.get_or_create(key, user_func, timeout, should_cache_fn, (arg, kw))
64
64
65 def cache_decorator(user_func):
65 def cache_decorator(user_func):
General Comments 0
You need to be logged in to leave comments. Login now