summaryrefslogtreecommitdiffstats
path: root/src/nbblib/bs.py
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2008-06-25 18:43:42 +0200
committerHans Ulrich Niedermann <hun@n-dimensional.de>2008-07-15 12:28:53 +0200
commitd9a9fb74a0e5ae3cfc948608c9084036f49b57f4 (patch)
treecdce1272e7ae2afa696482c52f4c3e1a3af18c06 /src/nbblib/bs.py
parent4f6b2987ed33db74824b4cb2f91032f03ec7d26a (diff)
downloadnbb-d9a9fb74a0e5ae3cfc948608c9084036f49b57f4.tar.gz
nbb-d9a9fb74a0e5ae3cfc948608c9084036f49b57f4.tar.xz
nbb-d9a9fb74a0e5ae3cfc948608c9084036f49b57f4.zip
Add basic logging support
Diffstat (limited to 'src/nbblib/bs.py')
-rw-r--r--src/nbblib/bs.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nbblib/bs.py b/src/nbblib/bs.py
index aff1834..ac09b97 100644
--- a/src/nbblib/bs.py
+++ b/src/nbblib/bs.py
@@ -4,6 +4,8 @@
import os
+import logging
+
from nbblib.plugins import *
from nbblib.progutils import *
@@ -44,13 +46,13 @@ class BSSourceTree(object):
"""Find BS tree type and return it"""
if len(cls.plugins) < 1:
raise NoPluginsRegistered(cls)
- # print "CLASS", cls
+ logging.debug("CLASS %s", cls)
matches = PluginDict()
for key, klass in cls.plugins.iteritems():
try:
t = klass(vcs_tree, context)
if t.tree_root() == vcs_tree.tree_root():
- # print "KLASS", klass
+ logging.debug("KLASS %s", klass)
matches[key] = t
except NotABSSourceTree, e:
pass