summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-04-25 21:13:44 +0300
committerLars Wirzenius <liw@liw.fi>2022-04-25 21:13:44 +0300
commit13d555cd4b4153d83af3b3ed170ee5d0b819b738 (patch)
treecc27b2c7ea3e5facbf82b9ffdbf92ebf706ed8cf
parentec01c71cf1797d7b7b71072f1bc3f62a93b2896d (diff)
downloadick2-13d555cd4b4153d83af3b3ed170ee5d0b819b738.tar.gz
fix: log in notify again
Sponsored-by: author
-rw-r--r--ick2/actions.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/ick2/actions.py b/ick2/actions.py
index 69be88f..4281e24 100644
--- a/ick2/actions.py
+++ b/ick2/actions.py
@@ -643,10 +643,9 @@ class NotifyAction(Action): # pragma: no cover
recipients = params["notify"]
- # log = cc.get_log(build_id)
- # log = log.decode("utf-8")
- # log = "\n".join(log.splitlines()[-1000])
- log = "Log elided. FIXME"
+ log = cc.get_log(build_id)
+ log = log.decode("utf-8")
+ log = "\n".join(log.splitlines()[-1000])
notify = {
"recipients": recipients,
@@ -654,7 +653,7 @@ class NotifyAction(Action): # pragma: no cover
"log": log,
}
- # cc.notify(notify)
+ cc.notify(notify)
env.report(0, "Notified about build {} ending\n".format(build_id))