diff options
author | Adam Spiers <git@adamspiers.org> | 2016-06-29 15:18:59 +0100 |
---|---|---|
committer | Adam Spiers <git@adamspiers.org> | 2018-05-15 13:42:16 +0100 |
commit | 502160e598f85a21440a1b4d3bace290f78e04c9 (patch) | |
tree | 1e7d639128495465b0046e604ff223f43a8aa95b | |
parent | c635d6c42af634626ca0b445837f151c7e1259a7 (diff) | |
download | git-deps-502160e598f85a21440a1b4d3bace290f78e04c9.tar.gz |
output webserver root when debugging
-rw-r--r-- | git_deps/server.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/git_deps/server.py b/git_deps/server.py index acef572..5ccaf91 100644 --- a/git_deps/server.py +++ b/git_deps/server.py @@ -5,7 +5,7 @@ from gitutils import GitUtils from git_deps.detector import DependencyDetector from git_deps.errors import InvalidCommitish from git_deps.listener.json import JSONDependencyListener -from git_deps.utils import abort +from git_deps.utils import abort, standard_logger def serve(options): @@ -16,10 +16,13 @@ def serve(options): except ImportError: abort("Cannot find flask module which is required for webserver mode.") + logger = standard_logger(__name__, options.debug) + webserver = Flask('git-deps') here = os.path.dirname(os.path.realpath(__file__)) root = os.path.join(here, 'html') webserver.root_path = root + logger.debug("Webserver root is %s" % root) ########################################################## # Static content |