projects
/
matthijs
/
projects
/
backupninja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Action: store a logger object in each Action.
[matthijs/projects/backupninja.git]
/
src
/
lib
/
backupninja
/
handlers
/
__init__.py
diff --git
a/src/lib/backupninja/handlers/__init__.py
b/src/lib/backupninja/handlers/__init__.py
index 29dc75631823ed79d5ecda18b99698d6dcacb782..484677171e0e72ec57250bbdfeaf3b554acf226e 100644
(file)
--- a/
src/lib/backupninja/handlers/__init__.py
+++ b/
src/lib/backupninja/handlers/__init__.py
@@
-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
# 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):
"""
def run(self, **kwargs):
"""