comparison src/plugins/plugin_xep_0065.py @ 1179:9a85836f0d45

plugins XEP-0096, XEP-0065: fixed bad log calls
author Goffi <goffi@goffi.org>
date Mon, 08 Sep 2014 15:50:51 +0200
parents 301b342c697a
children 96fb74a4714d
comparison
equal deleted inserted replaced
1178:49d39b619e5d 1179:9a85836f0d45
350 350
351 def bindRequested(self, addr, port): 351 def bindRequested(self, addr, port):
352 pass 352 pass
353 353
354 def authenticateUserPass(self, user, passwd): 354 def authenticateUserPass(self, user, passwd):
355 log.debug("User/pass: %s/%s", user, passwd) 355 log.debug("User/pass: %s/%s" % (user, passwd))
356 return True 356 return True
357 357
358 def dataReceived(self, buf): 358 def dataReceived(self, buf):
359 if self.state == STATE_TARGET_READY: 359 if self.state == STATE_TARGET_READY:
360 self.data["file_obj"].write(buf) 360 self.data["file_obj"].write(buf)
401 401
402 def startedConnecting(self, connector): 402 def startedConnecting(self, connector):
403 log.debug(_("Socks 5 server connection started")) 403 log.debug(_("Socks 5 server connection started"))
404 404
405 def clientConnectionLost(self, connector, reason): 405 def clientConnectionLost(self, connector, reason):
406 log.debug(_("Socks 5 server connection lost (reason: %s)"), reason) 406 log.debug(_("Socks 5 server connection lost (reason: %s)") % reason)
407 407
408 408
409 class Socks5ClientFactory(protocol.ClientFactory): 409 class Socks5ClientFactory(protocol.ClientFactory):
410 protocol = SOCKSv5 410 protocol = SOCKSv5
411 411
429 429
430 def startedConnecting(self, connector): 430 def startedConnecting(self, connector):
431 log.debug(_("Socks 5 client connection started")) 431 log.debug(_("Socks 5 client connection started"))
432 432
433 def clientConnectionLost(self, connector, reason): 433 def clientConnectionLost(self, connector, reason):
434 log.debug(_("Socks 5 client connection lost (reason: %s)"), reason) 434 log.debug(_("Socks 5 client connection lost (reason: %s)") % reason)
435 self.finishedCb(self.sid, reason.type == error.ConnectionDone, self.profile) # TODO: really check if the state is actually successful 435 self.finishedCb(self.sid, reason.type == error.ConnectionDone, self.profile) # TODO: really check if the state is actually successful
436 436
437 437
438 class XEP_0065(object): 438 class XEP_0065(object):
439 439