summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-02-14 15:47:15 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-02-14 15:47:15 +0100
commit0c2e653658b029130a66ceb2444a789a2516545c (patch)
tree50cfe6c6f23712e0112bb7487ea98a22b9b399d6
parent97f928dfa04ae07ab13ced7032738de94c4583ac (diff)
downloadpykolab-0c2e653658b029130a66ceb2444a789a2516545c.tar.gz
Make sure we do have a default user_uid and group_gid.
Also allow debug() to be called with a set of arguments not necessarily three.
-rw-r--r--pykolab/logger.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pykolab/logger.py b/pykolab/logger.py
index 10fa8a2..fc396cb 100644
--- a/pykolab/logger.py
+++ b/pykolab/logger.py
@@ -111,6 +111,9 @@ class Logger(logging.Logger):
else:
self.logfile = '/var/log/kolab/pykolab.log'
+ group_gid = 0
+ user_uid = 0
+
# Make sure (read: attempt to change) the permissions
try:
try:
@@ -217,7 +220,7 @@ class Logger(logging.Logger):
self.console_stdout.close()
self.removeHandler(self.console_stdout)
- def debug(self, msg, level=1):
+ def debug(self, msg, level=1, *args, **kw):
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: