Rev 4505: Add a trace to show the traceback of get_transport whenever it triggers. in http://bazaar.launchpad.net/~jameinel/bzr/1.17-double-connect

John Arbash Meinel john at arbash-meinel.com
Mon Jul 6 17:27:16 BST 2009


At http://bazaar.launchpad.net/~jameinel/bzr/1.17-double-connect

------------------------------------------------------------
revno: 4505
revision-id: john at arbash-meinel.com-20090706162646-sfj0biyrhsiplr7m
parent: pqm at pqm.ubuntu.com-20090702113738-5qda6d3y80z4l3o5
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 1.17-double-connect
timestamp: Mon 2009-07-06 11:26:46 -0500
message:
  Add a trace to show the traceback of get_transport whenever it triggers.
-------------- next part --------------
=== modified file 'bzrlib/transport/__init__.py'
--- a/bzrlib/transport/__init__.py	2009-06-10 03:56:49 +0000
+++ b/bzrlib/transport/__init__.py	2009-07-06 16:26:46 +0000
@@ -1582,6 +1582,11 @@
                     possible_transports.append(t_same_connection)
                 return t_same_connection
 
+    from bzrlib import trace
+    import traceback
+    trace.note('%s\nget_transport(%s)',
+               ''.join(traceback.format_stack()), base)
+
     for proto, factory_list in transport_list_registry.items():
         if proto is not None and base.startswith(proto):
             transport, last_err = _try_transport_factories(base, factory_list)



More information about the bazaar-commits mailing list