Skip to content

Commit

Permalink
Add log_file UTF-8 encoding.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamwil committed Dec 29, 2022
1 parent f4e59e0 commit bb50a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tox/tox_env/api.py
Expand Up @@ -444,7 +444,7 @@ def _log_execute(self, request: ExecuteRequest, status: ExecuteStatus) -> None:

@staticmethod
def _write_execute_log(env_name: str, log_file: Path, request: ExecuteRequest, status: ExecuteStatus) -> None:
with log_file.open("wt") as file:
with log_file.open("wt", encoding="utf-8") as file:
file.write(f"name: {env_name}\n")
file.write(f"run_id: {request.run_id}\n")
for env_key, env_value in request.env.items():
Expand Down

0 comments on commit bb50a96

Please sign in to comment.