summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pykolab/logger.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pykolab/logger.py b/pykolab/logger.py
index 8f2e5f7..6351d21 100644
--- a/pykolab/logger.py
+++ b/pykolab/logger.py
@@ -87,6 +87,10 @@ class Logger(logging.Logger):
def debug(self, msg, level=1):
self.setLevel(self.loglevel)
+ # Work around other applications not using various levels of debugging
+ if not self.name.startswith('pykolab') and not self.debuglevel == 9:
+ return
+
if level <= self.debuglevel:
# TODO: Not the way it's supposed to work!
self.log(logging.DEBUG, msg)