Fix missing f-string prefix on save-config debug log

The debug log emitted when writing out --save-config previously logged the
literal string "{args.save_config}" instead of the resolved filename, in both
vol.py and volshell. Add the f-string prefix so the actual destination path
appears in the log.
This commit is contained in:
Donghyun Kim
2026-05-26 06:41:59 +09:00
parent dfb8f5e78c
commit 8fb1df8b9f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -493,7 +493,7 @@ class CommandLine:
)
args.save_config = "config.json"
if args.save_config:
vollog.debug("Writing out configuration data to {args.save_config}")
vollog.debug(f"Writing out configuration data to {args.save_config}")
if os.path.exists(os.path.abspath(args.save_config)):
parser.error(
f"Cannot write configuration: file {args.save_config} already exists"
+1 -1
View File
@@ -377,7 +377,7 @@ class VolShell(cli.CommandLine):
)
args.save_config = "config.json"
if args.save_config:
vollog.debug("Writing out configuration data to {args.save_config}")
vollog.debug(f"Writing out configuration data to {args.save_config}")
if os.path.exists(os.path.abspath(args.save_config)):
parser.error(
f"Cannot write configuration: file {args.save_config} already exists"