summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2017-04-22 20:07:39 +0200
committerJan Dittberner <jandd@cacert.org>2017-04-22 20:07:39 +0200
commit4d23b6a48f26485f6c33d7948970191bd9357471 (patch)
tree5fba7d8226c7c7fcac51827615d69560ab5da21f /templates
parenteec8620e49a79481eed78148a1f4d6279e96b974 (diff)
downloadcacert-boardvoting-4d23b6a48f26485f6c33d7948970191bd9357471.tar.gz
cacert-boardvoting-4d23b6a48f26485f6c33d7948970191bd9357471.tar.xz
cacert-boardvoting-4d23b6a48f26485f6c33d7948970191bd9357471.zip
Switch to more flexible go-logging
This commit switches from loggo to the more flexible go-logging framework. Logs of severity INFO or higher are now written to a separate boardvoting.log file. Errors during execution of mail templates are now logged. A reasoning for the vote result is now logged and put into the mail notification when a decision is closed.
Diffstat (limited to 'templates')
-rw-r--r--templates/closed_motion_mail.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/closed_motion_mail.txt b/templates/closed_motion_mail.txt
index ee6bd45..b1b6a24 100644
--- a/templates/closed_motion_mail.txt
+++ b/templates/closed_motion_mail.txt
@@ -1,8 +1,10 @@
Dear Board,
-{{ with .Decision }}The motion with the identifier {{.Tag}} has been {{.Status}}.
+{{ with .Decision }}The motion with the identifier {{.Tag}} has been {{.Status}}.{{ end }}
-Motion:
+The reasoning for this result is: {{ .Reasoning }}
+
+{{ with .Decision }}Motion:
{{.Title}}
{{.Content}}