Skip to content

Commit

Permalink
Add a debug option to the SF client. debug=True enables debugging, by…
Browse files Browse the repository at this point in the history
… default, debugging is disabled
  • Loading branch information
dfdeshom committed Jan 20, 2010
1 parent 2882a05 commit de04ca2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sfpy/superfeedr.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
from xmpp.protocol import Iq
import xml.etree.ElementTree as ET
SF_HOST = "superfeedr.com"
# import logging
# log = logging.getLogger("superfeedr")
# log.debug('starting SuperFeedr')

class SuperFeedr(object):
def __init__(self,jid,password):
self.client = xmpp.Client(server=SF_HOST,debug=[])
def __init__(self,jid,password,debug=False):
if debug:
self.client = xmpp.Client(server=SF_HOST)
else:
self.client = xmpp.Client(server=SF_HOST,debug=[])
self.client.connect(server=(SF_HOST,5222))
self.jid = jid
name = xmpp.protocol.JID(jid)
Expand Down

0 comments on commit de04ca2

Please sign in to comment.