Action: store a logger object in each Action.
[matthijs/projects/backupninja.git] / src / lib / backupninja / handlers / __init__.py
index 29dc75631823ed79d5ecda18b99698d6dcacb782..484677171e0e72ec57250bbdfeaf3b554acf226e 100644 (file)
@@ -55,6 +55,10 @@ class Action(object):
         # Assume we'll run succesfully. If anything fails in the
         # meanwhile, set this to True.
         self.failed = False
+        # A logger object for this action. In the future, this might
+        # become a specific logger, that includes the action name and
+        # type.
+        self.log = log
 
     def run(self, **kwargs):
         """