##// END OF EJS Templates
vcsserver: logging improvements
super-admin -
r991:aaa8cc34 default
parent child Browse files
Show More
@@ -107,11 +107,11 b' class RhodeCodeCacheRegion(CacheRegion):'
107 107 def get_or_create_for_user_func(key_generator, user_func, *arg, **kw):
108 108
109 109 if not condition:
110 log.debug('Calling un-cached func:%s', user_func.func_name)
110 log.debug('Calling un-cached method:%s', user_func.func_name)
111 111 start = time.time()
112 112 result = user_func(*arg, **kw)
113 113 total = time.time() - start
114 log.debug('un-cached func:%s took %.4fs', user_func.func_name, total)
114 log.debug('un-cached method:%s took %.4fs', user_func.func_name, total)
115 115 return result
116 116
117 117 key = key_generator(*arg, **kw)
@@ -119,7 +119,7 b' class RhodeCodeCacheRegion(CacheRegion):'
119 119 timeout = expiration_time() if expiration_time_is_callable \
120 120 else expiration_time
121 121
122 log.debug('Calling cached fn:%s', user_func.func_name)
122 log.debug('Calling cached method:`%s`', user_func.func_name)
123 123 return self.get_or_create(key, user_func, timeout, should_cache_fn, (arg, kw))
124 124
125 125 def cache_decorator(user_func):
General Comments 0
You need to be logged in to leave comments. Login now