use logging for exceptions in webserver, check BAM_VERBOSE env var

This commit is contained in:
2014-11-21 17:56:57 +01:00
parent 2c9afe8d2f
commit 47a6eaa936
4 changed files with 23 additions and 7 deletions

View File

@@ -13,7 +13,12 @@ Run a single test:
python3 -m unittest test_cli.BamCommitTest.test_checkout
"""
VERBOSE = 1
import os
VERBOSE = os.environ.get("VERBOSE", False)
if VERBOSE:
# for the server subprocess
os.environ["BAM_VERBOSE"] = "1"
# ------------------
# Ensure module path