mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-17 20:35:40 +02:00
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:
@@ -493,7 +493,7 @@ class CommandLine:
|
|||||||
)
|
)
|
||||||
args.save_config = "config.json"
|
args.save_config = "config.json"
|
||||||
if args.save_config:
|
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)):
|
if os.path.exists(os.path.abspath(args.save_config)):
|
||||||
parser.error(
|
parser.error(
|
||||||
f"Cannot write configuration: file {args.save_config} already exists"
|
f"Cannot write configuration: file {args.save_config} already exists"
|
||||||
|
|||||||
@@ -377,7 +377,7 @@ class VolShell(cli.CommandLine):
|
|||||||
)
|
)
|
||||||
args.save_config = "config.json"
|
args.save_config = "config.json"
|
||||||
if args.save_config:
|
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)):
|
if os.path.exists(os.path.abspath(args.save_config)):
|
||||||
parser.error(
|
parser.error(
|
||||||
f"Cannot write configuration: file {args.save_config} already exists"
|
f"Cannot write configuration: file {args.save_config} already exists"
|
||||||
|
|||||||
Reference in New Issue
Block a user