summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/core/launcher.py
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2016-10-13 12:08:46 -0300
committerKali Kaneko (leap communications) <kali@leap.se>2016-10-17 19:38:21 -0400
commitc8eba064959310e44bdc2a4f0df49a534e761d04 (patch)
tree8d5e30031d291c1db78a746b1941e25514c1e01d /src/leap/bitmask/core/launcher.py
parentc1fdf7dfa3ba6f7eeca2a1f980ab4a68da735654 (diff)
[bug] use twisted.logger and fix logging namespace
Diffstat (limited to 'src/leap/bitmask/core/launcher.py')
-rw-r--r--src/leap/bitmask/core/launcher.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/leap/bitmask/core/launcher.py b/src/leap/bitmask/core/launcher.py
index 45acde2..cbe4064 100644
--- a/src/leap/bitmask/core/launcher.py
+++ b/src/leap/bitmask/core/launcher.py
@@ -24,6 +24,7 @@ from twisted.scripts.twistd import run
from leap.bitmask import core
from leap.bitmask.core import flags
+from leap.bitmask.core.logs import getLogPath
from leap.common.config import get_path_prefix
pid = abspath(join(get_path_prefix(), 'leap', 'bitmaskd.pid'))
@@ -48,11 +49,12 @@ def run_bitmaskd():
# from the bitmask_cli
for (index, arg) in enumerate(sys.argv):
if arg == '--backend':
- flags.BACKEND = argv[index + 1]
+ flags.BACKEND = sys.argv[index + 1]
sys.argv[1:] = [
'-y', join(here(core), "bitmaskd.tac"),
'--pidfile', pid,
- '--umask=0022',
+ '--umask', '0022',
+ '--logfile', getLogPath(),
]
print '[+] launching bitmaskd...'
run()