Browse Source

Heartbeat printing Config option

Dave Schuyler 22 years ago
parent
commit
b2c42c3275
1 changed files with 2 additions and 1 deletions
  1. 2 1
      direct/src/distributed/ClientRepository.py

+ 2 - 1
direct/src/distributed/ClientRepository.py

@@ -552,7 +552,8 @@ class ClientRepository(DirectObject.DirectObject):
 
     def handleServerHeartbeat(self, di):
         # Got a heartbeat message from the server.
-        ClientRepository.notify.info("Server heartbeat.")
+        if base.config.GetBool('server-heartbeat-info', 1):
+            ClientRepository.notify.info("Server heartbeat.")
         
 
     def handleUnexpectedMsgType(self, msgType, di):