~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/stub_sftp.py

  • Committer: John Arbash Meinel
  • Date: 2010-09-01 18:18:28 UTC
  • mto: This revision was merged to the branch mainline in revision 5405.
  • Revision ID: john@arbash-meinel.com-20100901181828-w4hkbqanre70x10g
Do it a different way by overriding the logging chosen

Show diffs side-by-side

added added

removed removed

Lines of Context:
345
345
        self.wrap_for_latency()
346
346
        tcs = self.server.test_case_server
347
347
        ssh_server = paramiko.Transport(self.request)
 
348
        # Set it to a channel under 'bzr' so that we get debug info
 
349
        ssh_server.set_log_channel('bzr.paramiko.transport')
348
350
        ssh_server.add_server_key(tcs.get_host_key())
349
351
        ssh_server.set_subsystem_handler('sftp', paramiko.SFTPServer,
350
352
                                         StubSFTPServer, root=tcs._root,