From e43ca15630c729e5777762aa5739851b98ef3483 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Fri, 24 Nov 2017 00:39:28 +0000 Subject: [PATCH] Improve the logging for scan failures. --- volatility/framework/interfaces/layers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/volatility/framework/interfaces/layers.py b/volatility/framework/interfaces/layers.py index 01bfa3308..7f69ddf39 100644 --- a/volatility/framework/interfaces/layers.py +++ b/volatility/framework/interfaces/layers.py @@ -6,6 +6,7 @@ import functools import logging import math import multiprocessing +import traceback from abc import ABCMeta, abstractmethod from volatility.framework import constants, exceptions, validity @@ -221,6 +222,8 @@ class DataLayerInterface(configuration.ConfigurableInterface, validity.ValidityR except Exception as e: # We don't care the kind of exception, so catch and report on everything, yielding nothing further vollog.debug("Scan Failure: {}".format(str(e))) + vollog.log(constants.LOGLEVEL_VVV, + "\n".join(traceback.TracebackException.from_exception(e).format(chain = True))) def _scan_iterator(self, scanner, min_address, max_address): return range(min_address, max_address, scanner.chunk_size)