use logging for exceptions in webserver, check BAM_VERBOSE env var
This commit is contained in:
@@ -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__":
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user