mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-29 04:54:51 +02:00
Fix up the logging so there are five standard levels, and list the cache location.
This commit is contained in:
@@ -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__)
|
||||
|
||||
Reference in New Issue
Block a user