/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/smart/request.py

  • Committer: John Arbash Meinel
  • Date: 2009-12-11 21:51:44 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-20091211215144-ml4x175u6mwyhc13
Add a -Dhpssthread debug flag to include thread.ident info.

I'm thinking to just go back and always include it. I don't feel like it
adds a lot of clutter, and then we don't have to worry about a new flag.

Show diffs side-by-side

added added

removed removed

Lines of Context:
298
298
            t = ''
299
299
        else:
300
300
            t = '%5.3fs ' % (osutils.timer_func() - self._request_start_time)
 
301
        if 'hpssthread' in debug.debug_flags:
 
302
            t_info = ' [%s] ' % (self._thread_id,)
 
303
        else:
 
304
            t_info = ' '
301
305
        if extra_bytes is None:
302
306
            extra = ''
303
307
        else:
304
308
            extra = ' ' + repr(extra_bytes[:40])
305
309
            if len(extra) > 33:
306
310
                extra = extra[:29] + extra[-1] + '...'
307
 
        trace.mutter('%12s: [%s] %s%s%s'
308
 
                     % (action, self._thread_id, t, message, extra))
 
311
        trace.mutter('%12s:%s%s%s%s'
 
312
                     % (action, t_info, t, message, extra))
309
313
 
310
314
    def accept_body(self, bytes):
311
315
        """Accept body data."""