Merge pull request #305 from strangeman/activity-log

Add more verbosity about tasks to the Events description
This commit is contained in:
Alan Campbell 2017-03-21 13:46:18 -04:00 committed by GitHub
commit 8e8e7b58d9

View File

@ -47,7 +47,7 @@ func (t *task) run() {
t.updateStatus()
objType := "task"
desc := "Task ID " + strconv.Itoa(t.task.ID) + " finished"
desc := "Task ID " + strconv.Itoa(t.task.ID) + " (" + t.template.Alias + ")" + " finished - " + strings.ToUpper(t.task.Status)
if err := (models.Event{
ProjectID: &t.projectID,
ObjectType: &objType,
@ -75,7 +75,7 @@ func (t *task) run() {
}
objType := "task"
desc := "Task ID " + strconv.Itoa(t.task.ID) + " is running"
desc := "Task ID " + strconv.Itoa(t.task.ID) + " (" + t.template.Alias + ")" + " is running"
if err := (models.Event{
ProjectID: &t.projectID,
ObjectType: &objType,