Only log when we spend time in there

erikj/perf_get_room_members
Erik Johnston 2015-06-01 14:27:41 +01:00
parent 1b0c857a6e
commit 072a1467f2
1 changed files with 1 additions and 1 deletions

View File

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