From 072a1467f24d6732c8ca7ce6e54ea09165f8a096 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Mon, 1 Jun 2015 14:27:41 +0100 Subject: [PATCH] Only log when we spend time in there --- synapse/app/homeserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py index 799c08ac9f..1e4017eafb 100755 --- a/synapse/app/homeserver.py +++ b/synapse/app/homeserver.py @@ -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__,