/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/trace.py

  • Committer: Martin Pool
  • Date: 2005-09-12 08:33:10 UTC
  • Revision ID: mbp@sourcefrog.net-20050912083310-697d45b053b4bdbc
- better interpretation of 
  must be 1 or true to have effect, not just defined

Show diffs side-by-side

added added

removed removed

Lines of Context:
185
185
    if not _file_handler:
186
186
        open_tracefile()                # also adds it
187
187
 
188
 
    if os.environ.get('BZR_DEBUG'):
 
188
    debug_flag = False
 
189
    try:
 
190
        debug_flag = bool(os.environ['BZR_DEBUG'])
 
191
    except:
 
192
        pass
 
193
        
 
194
    if debug_flag:
189
195
        level = logging.DEBUG
190
196
    else:
191
197
        level = logging.INFO