Commit 5fd8ca1f authored by Jérome Perrin's avatar Jérome Perrin

debug plugin

parent 303a970b
from dream.plugins import plugin from dream.plugins import plugin
from pprint import pformat from pprint import pformat
class Debug(plugin.InputPreparationPlugin): class Debug(plugin.InputPreparationPlugin, plugin.OutputPreparationPlugin):
def preprocess(self, data): def preprocess(self, data):
"""Preprocess the data. """Preprocess the data.
""" """
self.logger.info("%s: %s " % (self.name, pformat(data))) self.logger.info("%s: %s" % (self.configuration_dict, pformat(data)))
return data return data
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment