From 40debc7182d9a20cc2a1ec2b6a162a065a3183c0 Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Tue, 27 Sep 2016 14:33:39 -0400 Subject: [pkg] some bundling hacks --- src/leap/bitmask/core/_web.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/leap/bitmask') diff --git a/src/leap/bitmask/core/_web.py b/src/leap/bitmask/core/_web.py index 983b97e1..ce30a40a 100644 --- a/src/leap/bitmask/core/_web.py +++ b/src/leap/bitmask/core/_web.py @@ -29,7 +29,7 @@ from twisted.application import service from twisted.web.resource import Resource from twisted.web.server import Site, NOT_DONE_YET from twisted.web.static import File -from twisted.python import log +from twisted.logger import Logger from leap.bitmask.core.dispatcher import CommandDispatcher @@ -39,6 +39,8 @@ try: except ImportError: HAS_WEB_UI = False +log = Logger() + class HTTPDispatcherService(service.Service): @@ -55,8 +57,9 @@ class HTTPDispatcherService(service.Service): if HAS_WEB_UI: webdir = os.path.abspath( pkg_resources.resource_filename('leap.bitmask_js', 'public')) + log.debug('webdir: %s' % webdir) else: - log.msg('bitmask_js not found, serving bitmask.core ui') + log.warning('bitmask_js not found, serving bitmask.core ui') webdir = os.path.abspath( pkg_resources.resource_filename('leap.bitmask.core', 'web')) root = File(webdir) -- cgit v1.2.3