comparison src/plugins/plugin_misc_xmllog.py @ 280:345844caf048

plugin xmllog: removed traces
author Goffi <goffi@goffi.org>
date Tue, 01 Feb 2011 23:18:42 +0100
parents 05caa87196e6
children 6422fcdd831c
comparison
equal deleted inserted replaced
279:51085ed613c3 280:345844caf048
42 log=unicode(obj) 42 log=unicode(obj)
43 elif isinstance(obj, domish.Element): 43 elif isinstance(obj, domish.Element):
44 log=obj.toXml() 44 log=obj.toXml()
45 else: 45 else:
46 error(_('INTERNAL ERROR: Unmanaged XML type')) 46 error(_('INTERNAL ERROR: Unmanaged XML type'))
47 info('OUT data for %s: %s' % (self._profile, log))
48 self._host.bridge.XmlLog("OUT", log, self._profile) 47 self._host.bridge.XmlLog("OUT", log, self._profile)
49 return XmlStream.send(self, obj) 48 return XmlStream.send(self, obj)
50 49
51 def dataReceived(self, data): 50 def dataReceived(self, data):
52 info('IN data for %s: %s' % (self._profile, data.decode('utf-8')))
53 self._host.bridge.XmlLog("IN", data.decode('utf-8'), self._profile) 51 self._host.bridge.XmlLog("IN", data.decode('utf-8'), self._profile)
54 return XmlStream.dataReceived(self, data) 52 return XmlStream.dataReceived(self, data)
55 53
56 54
57 class XmlLog(): 55 class XmlLog():