summaryrefslogtreecommitdiffstats
path: root/bugzilla
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2008-06-05 16:46:30 -0400
committerWill Woods <wwoods@redhat.com>2008-06-05 16:46:30 -0400
commit8dcf06ea263105485096b6a3e2ab9da09ec4b3d5 (patch)
treedc38a23cc354ff8f07cdc8a6f1b64b8b8055258f /bugzilla
parent05e77b608c9eb898004f5c193e18cda28203e422 (diff)
downloadpython-bugzilla-8dcf06ea263105485096b6a3e2ab9da09ec4b3d5.zip
python-bugzilla-8dcf06ea263105485096b6a3e2ab9da09ec4b3d5.tar.gz
python-bugzilla-8dcf06ea263105485096b6a3e2ab9da09ec4b3d5.tar.xz
Add some logging
Diffstat (limited to 'bugzilla')
-rw-r--r--bugzilla/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bugzilla/__init__.py b/bugzilla/__init__.py
index 94f4886..8561921 100644
--- a/bugzilla/__init__.py
+++ b/bugzilla/__init__.py
@@ -12,6 +12,8 @@
from bugzilla3 import Bugzilla3
from rhbugzilla import RHBugzilla
import xmlrpclib
+import logging
+log = logging.getLogger("bugzilla")
def getBugzillaClassForURL(url):
s = xmlrpclib.ServerProxy(url)
@@ -42,4 +44,5 @@ class Bugzilla(object):
if c:
self.__class__ = c
c.__init__(self,**kwargs)
+ log.debug("Using Bugzilla subclass: %s" % c.__name__)
# FIXME no url? raise an error or something here, jeez