Rev 182: The library now gets the logger from the logging library, rather than it being set by the pqm script. in http://bzr.daniel-watkins.co.uk/pqm/logging

Daniel Watkins daniel at daniel-watkins.co.uk
Tue Jul 8 06:23:43 BST 2008


At http://bzr.daniel-watkins.co.uk/pqm/logging

------------------------------------------------------------
revno: 182
revision-id: daniel at daniel-watkins.co.uk-20080708052234-ev1ktw741rrfjuwk
parent: daniel at daniel-watkins.co.uk-20080708052010-7ccb79chgz3mj4f4
committer: Daniel Watkins <daniel at daniel-watkins.co.uk>
branch nick: logging
timestamp: Tue 2008-07-08 06:22:34 +0100
message:
  The library now gets the logger from the logging library, rather than it being set by the pqm script.
-------------- next part --------------
=== modified file 'bin/pqm'
--- a/bin/pqm	2008-07-08 05:20:10 +0000
+++ b/bin/pqm	2008-07-08 05:22:34 +0000
@@ -118,7 +118,6 @@
             failedcmd=None
     
             # ugly transitional code
-            pqm.logger = logger
             pqm.workdir = workdir
             pqm.runtla = runtla
             pqm.precommit_hook = precommit_hook
@@ -335,7 +334,6 @@
     sys.exit(1)
 
 # ugly transitional code
-pqm.logger = logger
 if configp.has_option('DEFAULT', 'arch_impl'):
     impl = configp.get('DEFAULT', 'arch_impl')
     if impl == 'tla':

=== modified file 'pqm/__init__.py'
--- a/pqm/__init__.py	2007-11-29 21:40:54 +0000
+++ b/pqm/__init__.py	2008-07-08 05:22:34 +0000
@@ -45,7 +45,7 @@
 keyring = None
 used_transactions = {}
 gnupatch_path = 'patch'
-logger = logging # default value for simple use.
+logger = logging.getLogger("pqm")
 no_act = False
 groups = {}
 



More information about the bazaar-commits mailing list