summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2016-10-10 13:20:08 -0300
committerKali Kaneko (leap communications) <kali@leap.se>2016-10-10 12:36:55 -0400
commitc1fdf7dfa3ba6f7eeca2a1f980ab4a68da735654 (patch)
tree39d517a4536d95c6ddc4f8d59ca83d2e777b88d7
parenta041d186bad1bf40a40c44da46087285aa04ff2d (diff)
[bug] create log directory on log initialization
-rw-r--r--src/leap/bitmask/core/logs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/bitmask/core/logs.py b/src/leap/bitmask/core/logs.py
index b8ba3ba3..1418fd57 100644
--- a/src/leap/bitmask/core/logs.py
+++ b/src/leap/bitmask/core/logs.py
@@ -1,5 +1,5 @@
from os import makedirs
-from os.path import abspath, join, isfile
+from os.path import abspath, join, isfile, isdir
from twisted.python import logfile
@@ -8,7 +8,7 @@ from leap.common.config import get_path_prefix
def loggerFactory():
configdir = abspath(join(get_path_prefix(), 'leap'))
- if not configdir:
+ if not isdir(configdir):
makedirs(configdir)
log_path = abspath(join(get_path_prefix(), 'leap', 'bitmaskd.log'))
rotate = isfile(log_path)