From 6b0894b407810ff43f3eecb1e955ff6f6e95d719 Mon Sep 17 00:00:00 2001 From: Rizqi Date: Mon, 22 Jun 2026 01:32:59 +0700 Subject: [PATCH] fix: update log file opening to use utf-8 encoding and line buffering --- backup_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup_core.py b/backup_core.py index fda62fb..a444b3f 100644 --- a/backup_core.py +++ b/backup_core.py @@ -259,7 +259,7 @@ def run_backup(host, user, password, vm_name, dest, compress=False, no_verify_ss The VMX config file is always included regardless. """ if log_path: - logfile = open(log_path, 'ab') + logfile = open(log_path, 'a', encoding='utf-8', buffering=1) def _wrap(): with redirect_stdout(logfile), redirect_stderr(logfile): return _run_backup_impl(host, user, password, vm_name, dest, compress, no_verify_ssl,