summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2010-10-08 13:27:49 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2010-10-08 13:27:49 +0200
commitbde4c1530a3aedc562dfd8c7e0cc13721336179d (patch)
treef1da8136fad0647be2f12dc000ec5570ad9518c5
parent11c2e732e4ae8dd1e8b5eee6e7de8d34f63568a1 (diff)
downloadpykolab-bde4c1530a3aedc562dfd8c7e0cc13721336179d.tar.gz
If the user says we must be quiet... well we better be quiet
-rw-r--r--pykolab/logger.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pykolab/logger.py b/pykolab/logger.py
index 168b338..e6d5a91 100644
--- a/pykolab/logger.py
+++ b/pykolab/logger.py
@@ -56,7 +56,8 @@ class Logger:
self.cfg = cfg
def info(self, msg):
- self.log.info(msg)
+ if not self.cfg.quiet:
+ self.log.info(msg)
def debug(self, msg, level=1):
# By default, level=1 so that debug messages are suppressed