~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

merge John Meinels http test server reliability patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
        ei = sys.exc_info()
170
170
        msg = str(ei[1])
171
171
 
172
 
    if msg[-1] == '\n':
 
172
    if msg and (msg[-1] == '\n'):
173
173
        msg = msg[:-1]
174
174
        
175
175
    _bzr_logger.exception(msg)
197
197
    logging.getLogger('').addHandler(_stderr_handler)
198
198
 
199
199
 
200
 
 
201
200
def disable_default_logging():
202
201
    """Turn off default log handlers.
203
202