def onElement(self, element): XmlStream.onElement(self, element) #logging.debug('Received message %s', element.toXml()) m = message.Message(message = element) #Pass to client handler try: self.handler.process_message(m, self) except Exception, err: logging.exception('Error processing incoming message: %s', err)
def onElement(self, element): # logging.debug('Element received') XmlStream.onElement(self, element) m = message.Message(message=element) manager.process_message(m, self)