~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/medium.py

  • Committer: John Arbash Meinel
  • Date: 2009-12-11 21:57:03 UTC
  • mto: (4896.1.3 2.1.0b4-dev)
  • mto: This revision was merged to the branch mainline in revision 4898.
  • Revision ID: john@arbash-meinel.com-20091211215703-zxl1ygia6mlnvfyo
Get rid of -Dhpssthread, just always include it.

We might actually consider changing mutter() with a -Dlogthread sort of flag.
As it could be useful to have all threads and pids get logged.

Show diffs side-by-side

added added

removed removed

Lines of Context:
300
300
        tstart = osutils.timer_func()
301
301
        osutils.send_all(self.socket, bytes, self._report_activity)
302
302
        if 'hpss' in debug.debug_flags:
303
 
            if 'hpssthread' in debug.debug_flags:
304
 
                ident_str = ' [%s] ' % (threading.currentThread().ident,)
305
 
            else:
306
 
                ident_str = ' '
307
 
            trace.mutter('%12s:%s%d bytes to the socket in %.3fs'
308
 
                         % ('wrote', ident_str, len(bytes),
 
303
            thread_id = threading.currentThread().ident
 
304
            trace.mutter('%12s: [%s] %d bytes to the socket in %.3fs'
 
305
                         % ('wrote', thread_id, len(bytes),
309
306
                            osutils.timer_func() - tstart))
310
307
 
311
308