Commit b08a8600 authored by Julien Muchembled's avatar Julien Muchembled

In threaded tests, log the line of code calling tic()

parent 08742377
...@@ -675,7 +675,11 @@ class NEOCluster(object): ...@@ -675,7 +675,11 @@ class NEOCluster(object):
@staticmethod @staticmethod
def tic(force=False): def tic(force=False):
# XXX: Should we automatically switch client in slave mode if it isn't ? # XXX: Should we automatically switch client in slave mode if it isn't ?
logging.info('tic ...') f = sys._getframe(1)
try:
logging.info('tic (%s:%u) ...', f.f_code.co_filename, f.f_lineno)
finally:
del f
if force: if force:
Serialized.tic() Serialized.tic()
logging.info('forced tic') logging.info('forced tic')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment