less spam from the messenger on the AI logs

This commit is contained in:
Joe Shochet 2007-02-12 00:48:24 +00:00
parent d5c8b6f490
commit bd2c0c7b14

View File

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