diff --git a/cms/envs/acceptance.py b/cms/envs/acceptance.py index e5ed2261b5..51e3183a52 100644 --- a/cms/envs/acceptance.py +++ b/cms/envs/acceptance.py @@ -14,9 +14,10 @@ from lms.envs.sauce import * # otherwise the browser will not render the pages correctly DEBUG = True -# Disable warnings for acceptance tests, to make the logs readable +# Output Django logs to a file import logging -logging.disable(logging.ERROR) +logging.basicConfig(filename=TEST_ROOT / "log" / "cms_acceptance.log", level=logging.ERROR) + import os from random import choice, randint diff --git a/lms/envs/acceptance.py b/lms/envs/acceptance.py index 9f2f0866db..5414705b79 100644 --- a/lms/envs/acceptance.py +++ b/lms/envs/acceptance.py @@ -14,9 +14,10 @@ from .sauce import * # otherwise the browser will not render the pages correctly DEBUG = True -# Disable warnings for acceptance tests, to make the logs readable +# Output Django logs to a file import logging -logging.disable(logging.ERROR) +logging.basicConfig(filename=TEST_ROOT / "log" / "lms_acceptance.log", level=logging.ERROR) + import os from random import choice, randint import string