~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: Robert Collins
  • Date: 2005-10-06 07:11:13 UTC
  • mfrom: (1393.1.59)
  • Revision ID: robertc@robertcollins.net-20051006071113-54e61035470e2f49
mergeĀ fromĀ martin

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
    # can get the exception details is we suppress them here.
55
55
 
56
56
    def format(self, record):
57
 
        s = 'bzr: '
58
57
        if record.levelno >= logging.WARNING:
59
 
            s += record.levelname + ': '
 
58
            s = 'bzr: ' + record.levelname + ': '
 
59
        else:
 
60
            s = ''
60
61
            
61
62
        s += record.getMessage()
62
63