X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fbackupninja.git;a=blobdiff_plain;f=src%2Flib%2Fbackupninja%2Fhandlers%2F__init__.py;h=22f9589ee5c97636df2d0817236096c9f2d0aa54;hp=50abb41307c9078444200c86c731e9de284a1cb7;hb=720461e22f511bd16dc0b496a3039f3d9eac276b;hpb=0c1dd1831642f274eaef605fb2b75ac536791612 diff --git a/src/lib/backupninja/handlers/__init__.py b/src/lib/backupninja/handlers/__init__.py index 50abb41..22f9589 100644 --- a/src/lib/backupninja/handlers/__init__.py +++ b/src/lib/backupninja/handlers/__init__.py @@ -47,7 +47,7 @@ class Action(object): which is a combination of a action type and a specific action configuration). """ - def __init__(self): + def __init__(self, logger): # Subclasses should overwrite this with their default config # See backupninja.config.load_config for the structure of this # value. @@ -58,7 +58,7 @@ class Action(object): # 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 + self.log = logger def run(self, **kwargs): """