summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiutauras Adomaitis <adomaitis@kolabsystems.com>2020-02-06 13:22:55 +0200
committerLiutauras Adomaitis <adomaitis@kolabsystems.com>2020-02-06 13:22:55 +0200
commitb587a7640f10738cb884434296a0377fe73540a9 (patch)
tree4aba9d7f3d9cde71e22273a8e9a48574b67223ce
parentd51ded2cb93fadb51322fa300232402e97310e27 (diff)
downloadpykolab-b587a7640f10738cb884434296a0377fe73540a9.tar.gz
Turns out os.chmod creates files with weird permissions '--w--w-r-T 1 kolab kolab-n 0 6. Feb 12:20 pykolab.log', this fixes the problem
-rw-r--r--pykolab/logger.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/logger.py b/pykolab/logger.py
index 1a826d9..2b857e2 100644
--- a/pykolab/logger.py
+++ b/pykolab/logger.py
@@ -213,7 +213,7 @@ class Logger(logging.Logger):
group_gid
)
- os.chmod(self.logfile, 660)
+ os.chmod(self.logfile, 0660)
except Exception as errmsg:
self.error(