~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2005-08-25 07:46:11 UTC
  • Revision ID: mbp@sourcefrog.net-20050825074611-98130ea6d05d9d2a
- add functions to enable and disable default logging, so that we can
  turn it off while running the tests

- default logging gets turned on from the bzr main function so that
  other applications using the library can make their own decisions

Show diffs side-by-side

added added

removed removed

Lines of Context:
1964
1964
def main(argv):
1965
1965
    import bzrlib.ui
1966
1966
    
1967
 
    bzrlib.trace.open_tracefile(argv)
 
1967
    bzrlib.trace.log_startup(argv)
1968
1968
 
1969
1969
    bzrlib.ui.ui_factory = bzrlib.ui.TextUIFactory()
1970
1970