From gabriel.rossetti at arimaz.com Thu Dec 10 09:04:01 2009 From: gabriel.rossetti at arimaz.com (Gabriel Rossetti) Date: Thu, 10 Dec 2009 09:04:01 +0100 Subject: [PyXMPP] turn off debugging? Message-ID: <4B20AB71.3000006@arimaz.com> Hello everyone, I would like to turn off the debug messages but could not find out how, does anyone know how to? Thank you, Gabriel -- Arimaz SA Ing?nieur en Informatique Av. du 24 Janvier 11 Ateliers de la Ville de Renens, Atelier 5 1020 Renens, Switzerland www.arimaz.com www.mydeskfriend.com Mob: +41-(0)79-539-0069 Tel: +41-(0)21-566-7343 From jajcus at jajcus.net Thu Dec 10 09:36:59 2009 From: jajcus at jajcus.net (Jacek Konieczny) Date: Thu, 10 Dec 2009 09:36:59 +0100 Subject: [PyXMPP] turn off debugging? In-Reply-To: <4B20AB71.3000006@arimaz.com> References: <4B20AB71.3000006@arimaz.com> Message-ID: <20091210083659.GA29340@jajo.eggsoft> On Thu, Dec 10, 2009 at 09:04:01AM +0100, Gabriel Rossetti wrote: > I would like to turn off the debug messages but could not find out how, > does anyone know how to? What debug messages? All PyXMPP debug output is handled by the standard Python logging module: http://docs.python.org/library/logging.html Greets, Jacek From gabriel.rossetti at arimaz.com Thu Dec 10 10:35:42 2009 From: gabriel.rossetti at arimaz.com (Gabriel Rossetti) Date: Thu, 10 Dec 2009 10:35:42 +0100 Subject: [PyXMPP] turn off debugging? In-Reply-To: <20091210083659.GA29340@jajo.eggsoft> References: <4B20AB71.3000006@arimaz.com> <20091210083659.GA29340@jajo.eggsoft> Message-ID: <4B20C0EE.1020102@arimaz.com> Jacek Konieczny wrote: > On Thu, Dec 10, 2009 at 09:04:01AM +0100, Gabriel Rossetti wrote: > >> I would like to turn off the debug messages but could not find out how, >> does anyone know how to? >> > > What debug messages? > > All PyXMPP debug output is handled by the standard Python logging > module: http://docs.python.org/library/logging.html > > Greets, > Jacek > Hello Jacek, thanks for the reply, I tried this : logger = logging.getLogger() logger.addHandler(logging.StreamHandler()) logger.setLevel(logging.CRITICAL) and logger = logging.getLogger() logger.setLevel(logging.CRITICAL) and logger = logging.getLogger("pyxmpp.Client") logger.setLevel(logging.CRITICAL) and logging.disable(logging.CRITICAL) and logging.shutdown() but it still output's everything (example) : DEBUG: dispatcher ok Got jabber:client/presence stanza DEBUG: dispatcher ok Dispatching presence stanza with type-> props->[] id->3 I'm online DEBUG: dispatcher ok Got jabber:client/presence stanza DEBUG: dispatcher ok Dispatching presence stanza with type-> props->[] id->None I'm online DEBUG: dispatcher info Registering handler > for "message" type-> ns->(jabber:client) Thank you, Gabriel From jajcus at jajcus.net Thu Dec 10 11:25:41 2009 From: jajcus at jajcus.net (Jacek Konieczny) Date: Thu, 10 Dec 2009 11:25:41 +0100 Subject: [PyXMPP] turn off debugging? In-Reply-To: <4B20C0EE.1020102@arimaz.com> References: <4B20AB71.3000006@arimaz.com> <20091210083659.GA29340@jajo.eggsoft> <4B20C0EE.1020102@arimaz.com> Message-ID: <20091210102541.GB29340@jajo.eggsoft> On Thu, Dec 10, 2009 at 10:35:42AM +0100, Gabriel Rossetti wrote: > but it still output's everything (example) : > > DEBUG: dispatcher ok Got jabber:client/presence stanza > DEBUG: dispatcher ok Dispatching presence stanza with type-> > props->[] id->3 > I'm online > DEBUG: dispatcher ok Got jabber:client/presence stanza > DEBUG: dispatcher ok Dispatching presence stanza with type-> > props->[] id->None > I'm online > DEBUG: dispatcher info Registering handler __MsgListener.__onMessage of <__MsgListener(Thread-1, initial)>> for > "message" type-> ns->(jabber:client) Those do not look like PyXMPP messages. Are you sure you are using PyXMPP and not some other Python XMPP implementation? Greets, Jacek From andrewdied at gmail.com Thu Dec 10 20:19:47 2009 From: andrewdied at gmail.com (Andrew Diederich) Date: Thu, 10 Dec 2009 22:19:47 +0300 Subject: [PyXMPP] turn off debugging? In-Reply-To: <20091210102541.GB29340@jajo.eggsoft> References: <4B20AB71.3000006@arimaz.com> <20091210083659.GA29340@jajo.eggsoft> <4B20C0EE.1020102@arimaz.com> <20091210102541.GB29340@jajo.eggsoft> Message-ID: <95b785820912101119v6312a2ccxf613da8da66ea642@mail.gmail.com> On Thu, Dec 10, 2009 at 1:25 PM, Jacek Konieczny wrote: > On Thu, Dec 10, 2009 at 10:35:42AM +0100, Gabriel Rossetti wrote: >> but it still output's everything (example) : >> >> DEBUG: dispatcher ? ok ? ?Got jabber:client/presence stanza > > Those do not look like PyXMPP messages. Are you sure you are using > PyXMPP and not some other Python XMPP implementation? > I think those are jabberpy messages. It's pretty verbose and hard to shut off. -- Andrew Diederich andrewdied at gmail.com From gabriel.rossetti at arimaz.com Fri Dec 11 08:53:14 2009 From: gabriel.rossetti at arimaz.com (Gabriel Rossetti) Date: Fri, 11 Dec 2009 08:53:14 +0100 Subject: [PyXMPP] turn off debugging? In-Reply-To: <20091210102541.GB29340@jajo.eggsoft> References: <4B20AB71.3000006@arimaz.com> <20091210083659.GA29340@jajo.eggsoft> <4B20C0EE.1020102@arimaz.com> <20091210102541.GB29340@jajo.eggsoft> Message-ID: <4B21FA6A.8080206@arimaz.com> Jacek Konieczny wrote: > On Thu, Dec 10, 2009 at 10:35:42AM +0100, Gabriel Rossetti wrote: > >> but it still output's everything (example) : >> >> DEBUG: dispatcher ok Got jabber:client/presence stanza >> DEBUG: dispatcher ok Dispatching presence stanza with type-> >> props->[] id->3 >> I'm online >> DEBUG: dispatcher ok Got jabber:client/presence stanza >> DEBUG: dispatcher ok Dispatching presence stanza with type-> >> props->[] id->None >> I'm online >> DEBUG: dispatcher info Registering handler > __MsgListener.__onMessage of <__MsgListener(Thread-1, initial)>> for >> "message" type-> ns->(jabber:client) >> > > Those do not look like PyXMPP messages. Are you sure you are using > PyXMPP and not some other Python XMPP implementation? > > Greets, > Jacek > > Wow, you're right, I installed the python-xmpp package on ubuntu thinking it was pyxmpp, but I just checked out the header in the __init__.py file and it's xmpppy. I was wondering why most of the examples I found didn work :-). Cheers, Gabriel