From 8fb1df8b9f7d7f0cd1617dc9bf856d31e3b14ac6 Mon Sep 17 00:00:00 2001 From: Donghyun Kim Date: Tue, 26 May 2026 06:41:59 +0900 Subject: [PATCH] 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. --- volatility3/cli/__init__.py | 2 +- volatility3/cli/volshell/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/volatility3/cli/__init__.py b/volatility3/cli/__init__.py index 870578eb4..83019ff18 100644 --- a/volatility3/cli/__init__.py +++ b/volatility3/cli/__init__.py @@ -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" diff --git a/volatility3/cli/volshell/__init__.py b/volatility3/cli/volshell/__init__.py index 5bc29f220..4b7bdc3bc 100644 --- a/volatility3/cli/volshell/__init__.py +++ b/volatility3/cli/volshell/__init__.py @@ -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"