Browse Source

less spam from the messenger on the AI logs

Joe Shochet 19 years ago
parent
commit
bd2c0c7b14
1 changed files with 2 additions and 2 deletions
  1. 2 2
      direct/src/showbase/Messenger.py

+ 2 - 2
direct/src/showbase/Messenger.py

@@ -66,10 +66,10 @@ class Messenger:
 
 
         # Make sure we are not inadvertently overwriting an existing event
         # Make sure we are not inadvertently overwriting an existing event
         # on this particular object.
         # on this particular object.
-        if __debug__:
+        if Messenger.notify.getDebug():        
             if acceptorDict.has_key(object):
             if acceptorDict.has_key(object):
                 oldMethod = acceptorDict[object][0]
                 oldMethod = acceptorDict[object][0]
-                if oldMethod == method:                    
+                if oldMethod == method:
                     self.notify.warning(
                     self.notify.warning(
                         "object: %s was already accepting: \"%s\" with same callback: %s()" %
                         "object: %s was already accepting: \"%s\" with same callback: %s()" %
                         (object.__class__.__name__, event, method.__name__))
                         (object.__class__.__name__, event, method.__name__))