~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: Martin Pool
  • Date: 2007-08-15 04:33:34 UTC
  • mto: (2701.1.2 remove-should-cache)
  • mto: This revision was merged to the branch mainline in revision 2710.
  • Revision ID: mbp@sourcefrog.net-20070815043334-01dx9emb0vjiy29v
Remove things deprecated in 0.11 and earlier

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
""")
62
62
 
63
63
import bzrlib
64
 
from bzrlib.symbol_versioning import (deprecated_function,
65
 
        zero_nine,
66
 
        )
67
64
 
68
65
lazy_import(globals(), """
69
66
from bzrlib import debug
178
175
        warning("failed to open trace file: %s" % (e))
179
176
 
180
177
 
181
 
@deprecated_function(zero_nine)
182
 
def log_exception(msg=None):
183
 
    """Log the last exception to stderr and the trace file.
184
 
 
185
 
    The exception string representation is used as the error
186
 
    summary, unless msg is given.
187
 
 
188
 
    Please see log_exception_quietly() for the replacement API.
189
 
    """
190
 
    if msg:
191
 
        error(msg)
192
 
    log_exception_quietly()
193
 
 
194
 
 
195
178
def log_exception_quietly():
196
179
    """Log the last exception to the trace file only.
197
180