mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-18 08:54:54 +03:00
Only log when we spend time in there
This commit is contained in:
parent
1b0c857a6e
commit
072a1467f2
1 changed files with 1 additions and 1 deletions
|
@ -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__,
|
||||||
|
|
Loading…
Reference in a new issue