From 603769cd3d9e8f02a5932b3d2663350d99b561e7 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Wed, 13 Jan 2016 00:49:12 +0000 Subject: [PATCH] Tidy up useful debugging output. --- volatility/framework/configuration/depresolver.py | 4 +--- volatility/framework/interfaces/configuration.py | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/volatility/framework/configuration/depresolver.py b/volatility/framework/configuration/depresolver.py index 447f7e106..9b3ca17cf 100644 --- a/volatility/framework/configuration/depresolver.py +++ b/volatility/framework/configuration/depresolver.py @@ -64,9 +64,7 @@ class DataLayerDependencyResolver(validity.ValidityRoutines): else: return False try: - print("NODE", node, "OPTIONAL", node.requirement.optional) value = context.config[node_path] - print("TEST", value) node.requirement.validate(value, context) except BaseException as e: if not node.requirement.optional: @@ -128,4 +126,4 @@ class Node(Leaf): self.branches = {} def __repr__(self): - return "" + return "" diff --git a/volatility/framework/interfaces/configuration.py b/volatility/framework/interfaces/configuration.py index 228bf3580..189e30df1 100644 --- a/volatility/framework/interfaces/configuration.py +++ b/volatility/framework/interfaces/configuration.py @@ -37,6 +37,9 @@ class RequirementInterface(validity.ValidityRoutines, metaclass = ABCMeta): self._default = default self._optional = optional + def __repr__(self): + return "<" + self.__class__.__name__ + ": " + self.name + ">" + @property def name(self): """The name of the Option."""