Unverified Commit d92da7e9 authored by Julien Palard's avatar Julien Palard
Browse files

Usefull logging to debug firejail issues.

parent b38c1a71
......@@ -173,6 +173,7 @@ def check_answer_task(answer: dict):
answer should contain: check, source_code, and language.
"""
with tempfile.TemporaryDirectory(prefix="hkis") as tmpdir:
logger.debug("Checking an answer in %s.", tmpdir)
with open(os.path.join(tmpdir, "check.py"), "w") as check_file:
check_file.write(answer["check"])
with open(os.path.join(tmpdir, "solution.py"), "w") as answer_file:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment