mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-29 21:14:55 +02:00
Layers: Crash64 improve logging
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user