[python-bugzilla] [PATCH 11/13] Fix logging to use correct logger

abn at redhat.com abn at redhat.com
Tue Oct 29 13:22:30 UTC 2013


From: Arun Babu Neelicattu <abn at redhat.com>

- fix import statement to prevent accidental usage
---
 bugzilla/__init__.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bugzilla/__init__.py b/bugzilla/__init__.py
index 7db68ef..1f9edb9 100644
--- a/bugzilla/__init__.py
+++ b/bugzilla/__init__.py
@@ -12,10 +12,10 @@
 __version__ = "0.9.0"
 version = __version__
 
-import logging
+from logging import getLogger
 from xmlrpclib import Fault, ServerProxy
 
-log = logging.getLogger("bugzilla")
+log = getLogger("bugzilla")
 
 
 from bugzilla.base import BugzillaBase as _BugzillaBase
@@ -42,7 +42,7 @@ def getBugzillaClassForURL(url):
         log.info("Using RHBugzilla for URL containing bugzilla.redhat.com")
         return RHBugzilla
     if "bugzilla.novell.com" in url:
-        logging.info("Using NovellBugzilla for URL containing novell.com")
+        log.info("Using NovellBugzilla for URL containing novell.com")
         return NovellBugzilla
 
     # Check for a Red Hat extension
-- 
1.8.3.1



More information about the python-bugzilla mailing list