Commit a0ea159f authored by Jérome Perrin's avatar Jérome Perrin

debuging plugin that just logs the json

parent 95e5629c
from dream.plugins import plugin
from pprint import pformat
class Debug(plugin.InputPreparationPlugin):
def preprocess(self, data):
"""Preprocess the data.
"""
self.logger.info("%s: %s " % (self.name, pformat(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