~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: Martin Pool
  • Date: 2005-10-06 04:03:50 UTC
  • mto: (1185.13.3)
  • mto: This revision was merged to the branch mainline in revision 1417.
  • Revision ID: mbp@sourcefrog.net-20051006040350-4e34f7432ec22254
- no 'bzr' prefix on info messages

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