~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugin.py

Update to bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
 
42
42
from bzrlib import (
43
43
    config,
 
44
    debug,
44
45
    osutils,
 
46
    trace,
45
47
    )
46
48
from bzrlib import plugins as _mod_plugins
47
49
""")
220
222
            else:
221
223
                warning('Unable to load plugin %r from %r' % (name, d))
222
224
            log_exception_quietly()
 
225
            if 'error' in debug.debug_flags:
 
226
                trace.print_exception(sys.exc_info(), sys.stderr)
223
227
 
224
228
 
225
229
@deprecated_function(one_three)
299
303
            warning('Unable to load plugin %r from %r'
300
304
                    % (name, zip_name))
301
305
            log_exception_quietly()
 
306
            if 'error' in debug.debug_flags:
 
307
                trace.print_exception(sys.exc_info(), sys.stderr)
302
308
 
303
309
 
304
310
def plugins():