From dcbd893cbc7b4104545fcfc1e49fe9f72ed407c4 Mon Sep 17 00:00:00 2001 From: Will Woods Date: Mon, 25 Aug 2008 13:09:41 -0400 Subject: Comment cleanups and extra debugging info --- bugzilla/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bugzilla/__init__.py') diff --git a/bugzilla/__init__.py b/bugzilla/__init__.py index 0bab22e..ebc8bb4 100644 --- a/bugzilla/__init__.py +++ b/bugzilla/__init__.py @@ -11,6 +11,7 @@ from bugzilla3 import Bugzilla3, Bugzilla32 from rhbugzilla import RHBugzilla, RHBugzilla3 +from base import version import xmlrpclib import logging log = logging.getLogger("bugzilla") @@ -55,10 +56,13 @@ class Bugzilla(object): '''Magical Bugzilla class that figures out which Bugzilla implementation to use and uses that.''' def __init__(self,**kwargs): + log.debug("Bugzilla v%s initializing" % base.version) if 'url' in kwargs: + log.debug("Choosing implementation for %s" % kwargs['url']) c = getBugzillaClassForURL(kwargs['url']) if c: self.__class__ = c c.__init__(self,**kwargs) - log.debug("Using Bugzilla subclass: %s" % c.__name__) + log.debug("Using Bugzilla subclass %s v%s" % \ + (c.__name__,c.version)) # FIXME no url? raise an error or something here, jeez -- cgit