From 4b0515aa6502fd58607086e3dc9e2b09011e9f14 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Mon, 24 Jul 2017 01:39:29 +0100 Subject: [PATCH] Fix up the logging so there are five standard levels, and list the cache location. --- volatility/cli/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/volatility/cli/__init__.py b/volatility/cli/__init__.py index 0d6de1a08..b6f83bb66 100644 --- a/volatility/cli/__init__.py +++ b/volatility/cli/__init__.py @@ -111,7 +111,12 @@ class CommandLine(object): args = parser.parse_args() if args.plugin is None: parser.error("Please select a plugin to run") - console.setLevel(30 - (args.verbosity * 10)) + if args.verbosity < 3: + console.setLevel(30 - (args.verbosity * 10)) + else: + console.setLevel(10 - (args.verbosity - 2)) + + vollog.log(constants.LOGLEVEL_VVV, "Cache directory used: {}".format(constants.CACHE_PATH)) plugin = plugin_list[args.plugin] plugin_config_path = interfaces.configuration.path_join('plugins', plugin.__name__)