From 577c4acec31f7b58f682e745d101269953abb74c Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Sun, 20 Sep 2020 01:37:18 +0100 Subject: [PATCH] Layers: Crash64 improve logging --- volatility/framework/layers/crash.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/volatility/framework/layers/crash.py b/volatility/framework/layers/crash.py index a663b5760..d649e257d 100644 --- a/volatility/framework/layers/crash.py +++ b/volatility/framework/layers/crash.py @@ -2,6 +2,7 @@ # which is available at https://www.volatilityfoundation.org/license/vsl-v1.0 # +import logging import struct from typing import Tuple, Optional @@ -9,6 +10,8 @@ from volatility.framework import constants, exceptions, interfaces from volatility.framework.layers import segmented from volatility.framework.symbols import intermed +vollog = logging.getLogger(__name__) + class WindowsCrashDumpFormatException(exceptions.LayerException): """Thrown when an error occurs with the underlying Crash file format.""" @@ -59,7 +62,8 @@ class WindowsCrashDump32Layer(segmented.SegmentedLayer): # Verify that it is a supported format if header.DumpType not in self.supported_dumptypes: - raise WindowsCrashDumpFormatException(self.name, + vollog.log(constants.LOGLEVEL_VVVV, "unsupported dump format 0x{:x}".format(header.DumpType)) + raise WindowsCrashDumpFormatException(name, "unsupported dump format 0x{:x}".format(header.DumpType)) super().__init__(context, config_path, name)