import logging as log
-from backupninja.handlers import Handler
+from backupninja.handlers import Action
-class TestHandler(Handler):
- def run(self):
- log.error(self.conf.get('main', 'message'))
+class TestAction(Action):
+ def run(self, **kwargs):
+ log.info(self.conf.get('main', 'message'))
-handler = TestHandler
+handler = TestAction