add new attribut to MessageOutgoingEvent to allow logging configuration
This commit is contained in:
parent
8896e33d65
commit
b9d2948307
|
@ -1781,6 +1781,8 @@ class Connection(CommonConnection, ConnectionHandlers):
|
|||
if obj.callback:
|
||||
obj.callback(msg_id, *obj.callback_args)
|
||||
|
||||
if not obj.is_loggable:
|
||||
return
|
||||
self.log_message(jid, msg, forward_from, session, original_message,
|
||||
subject, type_)
|
||||
|
||||
|
|
|
@ -2067,6 +2067,7 @@ class MessageOutgoingEvent(nec.NetworkIncomingEvent):
|
|||
self.callback = None
|
||||
self.callback_args = []
|
||||
self.now = False
|
||||
self.is_loggable = True
|
||||
|
||||
def generate(self):
|
||||
return True
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue