Browse Source

added verbose-*repository configs

Darren Ranalli 19 years ago
parent
commit
7ad04f5061

+ 3 - 0
direct/src/distributed/ClientRepositoryBase.py

@@ -26,6 +26,9 @@ class ClientRepositoryBase(ConnectionRepository):
     def __init__(self, dcFileNames = None):
     def __init__(self, dcFileNames = None):
         self.dcSuffix=""
         self.dcSuffix=""
         ConnectionRepository.__init__(self, ConnectionRepository.CM_HTTP, base.config, hasOwnerView=True)
         ConnectionRepository.__init__(self, ConnectionRepository.CM_HTTP, base.config, hasOwnerView=True)
+        if hasattr(self, 'setVerbose'):
+            if self.config.GetBool('verbose-clientrepository'):
+                self.setVerbose(1)
 
 
         self.context=100000
         self.context=100000
         self.setClientDatagram(1)
         self.setClientDatagram(1)

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

@@ -42,7 +42,8 @@ class ConnectionRepository(
         self.config = config
         self.config = config
 
 
         if hasattr(self, 'setVerbose'):
         if hasattr(self, 'setVerbose'):
-            self.setVerbose(self.config.GetBool('verbose-repository', 0))
+            if self.config.GetBool('verbose-repository'):
+                self.setVerbose(1)
 
 
         # Set this to 'http' to establish a connection to the server
         # Set this to 'http' to establish a connection to the server
         # using the HTTPClient interface, which ultimately uses the
         # using the HTTPClient interface, which ultimately uses the