~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-08-16 01:58:16 UTC
  • mfrom: (2696.1.2 remove-deprecated)
  • Revision ID: pqm@pqm.ubuntu.com-20070816015816-95mkpi0q9k1hrsy3
Remove deprecated interfaces

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