From c8eba064959310e44bdc2a4f0df49a534e761d04 Mon Sep 17 00:00:00 2001 From: drebs Date: Thu, 13 Oct 2016 12:08:46 -0300 Subject: [bug] use twisted.logger and fix logging namespace --- src/leap/bitmask/core/launcher.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/leap/bitmask/core/launcher.py') 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() -- cgit v1.2.3