Skip to content

Commit

Permalink
Added debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
oskopek committed Jan 30, 2014
1 parent a511e4f commit e889068
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cryptoim/xmpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,20 +74,23 @@ def connected(self, event):
"""

self.is_connected = True
self.parent.print_debug('Connection started.')

def disconnected(self, event):
"""
Process the disconnected event.
"""

self.is_connected = False
self.parent.print_debug('Connection ended.')

def session_end(self, event):
"""
Process the session_end event.
"""

self.in_session = False
self.parent.print_debug('Session ended.')

def start(self, event):
"""
Expand All @@ -106,6 +109,7 @@ def start(self, event):
self.get_roster()
self.in_session = True
self.parent.print_cmd('Connected!')
self.parent.print_debug('Session started.')

def message(self, msg):
"""
Expand Down

0 comments on commit e889068

Please sign in to comment.