# HG changeset patch # User Marcin Kuzminski # Date 2019-09-11 08:20:05 # Node ID eaf5cd79231553590b0cac054b3f971b757a53d9 # Parent 200e352511e37228493a03fe6443ff19f0831c73 logging: use just func names for logs instead of objects with memory address (doesn't give any valueable info) diff --git a/vcsserver/lib/rc_cache/utils.py b/vcsserver/lib/rc_cache/utils.py --- a/vcsserver/lib/rc_cache/utils.py +++ b/vcsserver/lib/rc_cache/utils.py @@ -51,7 +51,7 @@ class RhodeCodeCacheRegion(CacheRegion): def get_or_create_for_user_func(key_generator, user_func, *arg, **kw): if not condition: - log.debug('Calling un-cached func:%s', user_func) + log.debug('Calling un-cached func:%s', user_func.func_name) return user_func(*arg, **kw) key = key_generator(*arg, **kw) @@ -59,7 +59,7 @@ class RhodeCodeCacheRegion(CacheRegion): timeout = expiration_time() if expiration_time_is_callable \ else expiration_time - log.debug('Calling cached fn:%s', user_func) + log.debug('Calling cached fn:%s', user_func.func_name) return self.get_or_create(key, user_func, timeout, should_cache_fn, (arg, kw)) def cache_decorator(user_func):