mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-15 17:51:10 +00: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)
|
||||
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__,
|
||||
|
|
Loading…
Reference in a new issue