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

@@ -58,6 +58,7 @@ def create_from_files(deps):
f_rel = bpy.path.relpath(f_abs)
image = bpy.data.images.load(f)
image.use_fake_user = True
deps.append(f_abs)
if __name__ == "__main__":

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