Don't show errors if there are none.

This commit is contained in:
Mike Auty
2018-10-31 17:03:43 +00:00
parent 3d7dc1fb21
commit f3fce720b1
2 changed files with 6 additions and 3 deletions
+3 -2
View File
@@ -126,8 +126,9 @@ class CommandLine(interfaces.plugins.FileConsumerInterface):
ctx = contexts.Context() # Construct a blank context
failures = framework.import_files(volatility.plugins,
True) # Will not log as console's default level is WARNING
parser.epilog = "The following plugins could not be loaded (use -vv to see why): " + ", ".join(failures)
vollog.info(parser.epilog)
if failures:
parser.epilog = "The following plugins could not be loaded (use -vv to see why): " + ", ".join(failures)
vollog.info(parser.epilog)
automagics = automagic.available(ctx)
plugin_list = framework.list_plugins()
+3 -1
View File
@@ -95,7 +95,9 @@ class VolShell(cli.CommandLine):
ctx = contexts.Context() # Construct a blank context
failures = framework.import_files(volatility.plugins,
True) # Will not log as console's default level is WARNING
vollog.info("Plugins could not be loaded: " + ", ".join(failures))
if failures:
parser.epilog = "The following plugins could not be loaded (use -vv to see why): " + ", ".join(failures)
vollog.info(parser.epilog)
automagics = automagic.available(ctx)
# Initialize the list of plugins in case volshell needs it