summaryrefslogtreecommitdiffstats
path: root/gitautodeploy/events.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitautodeploy/events.py')
-rw-r--r--gitautodeploy/events.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gitautodeploy/events.py b/gitautodeploy/events.py
index bbf93a2..cf777a6 100644
--- a/gitautodeploy/events.py
+++ b/gitautodeploy/events.py
@@ -67,6 +67,7 @@ class SystemEvent(object):
self.register_message(message, "ERROR")
def log_critical(self, message):
+ self.logger.critical(message)
self.register_message(message, "CRITICAL")
def update(self):
@@ -147,4 +148,7 @@ class EventStore(object):
self.update_observers(action, message)
def dict_repr(self):
- return map(lambda x: x.dict_repr(), self.actions)
+ action_repr = []
+ for action in self.actions:
+ action_repr.append(action.dict_repr())
+ return action_repr