summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-07-05 17:38:01 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-07-05 17:38:01 +0100
commit205d3e034985c17e74eba01e1d79e3658130186b (patch)
tree47e08833536375788d26b582b1cc3ed1c87cad85
parent7e6d27a5da81f2cb8966c1a72de103024463690e (diff)
downloadpykolab-205d3e034985c17e74eba01e1d79e3658130186b.tar.gz
Avoid having to call the logger with a kw logfile
-rw-r--r--pykolab/logger.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pykolab/logger.py b/pykolab/logger.py
index 64cdc8d..f72b09e 100644
--- a/pykolab/logger.py
+++ b/pykolab/logger.py
@@ -67,8 +67,7 @@ class Logger(logging.Logger):
if kw.has_key('logfile'):
self.logfile = kw['logfile']
- else:
- return
+
try:
filelog_handler = logging.FileHandler(filename=self.logfile)
filelog_handler.setFormatter(plaintextformatter)