Only log when we spend time in there

This commit is contained in:
Erik Johnston 2015-06-01 14:27:41 +01:00
parent 1b0c857a6e
commit 072a1467f2

View file

@ -530,7 +530,7 @@ def run(hs):
f(*args, **kwargs)
end = int(time.time()*1000)
if RoomMemberHandler.total_time > 0:
if RoomMemberHandler.total_time > 0.001:
logger.info(
"Total time in get_room_members: %s %d ms / %d ms",
f.__name__,