Skip to content

Commit 172bf2b

Browse files
committed
remove debug log
1 parent b0133f7 commit 172bf2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

workers/tests/utils/testutils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def wrapper(self, *args, __meth__=test_case,
159159
__check_log__=check_log_case, **kwargs):
160160
if (__check_log__ is not None
161161
and callable(__check_log__)
162-
and not True):
162+
and not is_envvar_true(PYAZURE_WEBHOST_DEBUG)):
163163

164164
# Check logging output for unit test scenarios
165165
result = self._run_test(__meth__, *args, **kwargs)
@@ -233,7 +233,7 @@ def setUpClass(cls):
233233

234234
docker_tests_enabled, sku = cls.docker_tests_enabled()
235235

236-
cls.host_stdout = None if True \
236+
cls.host_stdout = None if is_envvar_true(PYAZURE_WEBHOST_DEBUG) \
237237
else tempfile.NamedTemporaryFile('w+t')
238238

239239
try:
@@ -971,7 +971,7 @@ def popen_webhost(*, stdout, stderr, script_root=FUNCS_PATH, port=None):
971971
def start_webhost(*, script_dir=None, stdout=None):
972972
script_root = TESTS_ROOT / script_dir if script_dir else FUNCS_PATH
973973
if stdout is None:
974-
if True:
974+
if is_envvar_true(PYAZURE_WEBHOST_DEBUG):
975975
stdout = sys.stdout
976976
else:
977977
stdout = subprocess.DEVNULL

0 commit comments

Comments
 (0)