summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pykolab/logger.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pykolab/logger.py b/pykolab/logger.py
index 51f3e12..3ad16e9 100644
--- a/pykolab/logger.py
+++ b/pykolab/logger.py
@@ -156,7 +156,7 @@ class Logger(logging.Logger):
if os.path.isfile(self.logfile):
try:
- if not user_uid == 0 or group_gid = 0:
+ if not user_uid == 0 or group_gid == 0:
os.chown(
self.logfile,
user_uid,
@@ -214,6 +214,6 @@ class Logger(logging.Logger):
if level <= self.debuglevel:
# TODO: Not the way it's supposed to work!
self.log(logging.DEBUG, '[%d]: %s' % (os.getpid(),msg))
-
+
logging.setLoggerClass(Logger)