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):
@staticmethod
def tic(force=False):
# 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:
Serialized.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