git » msnlib » commit eafb518

Add debug output to the ping() method

author Alberto Bertogli
2011-05-15 22:15:36 UTC
committer Alberto Bertogli
2011-05-15 22:16:16 UTC
parent 178b8dfbc8e63c8d27cd405e7b7c948ca4709102

Add debug output to the ping() method

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

msnlib.py +5 -2

diff --git a/msnlib.py b/msnlib.py
index 055d795..5d7f64e 100644
--- a/msnlib.py
+++ b/msnlib.py
@@ -457,8 +457,11 @@ class msnd:
 
 	def ping(self):
 		"Sends a ping to the server"
-		try: self.fd.send('PNG\r\n')
-		except: pass
+		try:
+			self.fd.send('PNG\r\n')
+			debug(str(self.fd.fileno()) + ' >>> PNG')
+		except:
+			pass
 
 	def invite(self, email, sbd):
 		"Invites a user into an existing sbd"