Skip to content

Commit 10ec123

Browse files
committed
feat(dvls): secrets format
1 parent a9b4923 commit 10ec123

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

api/projects/tasks.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ func AddTask(w http.ResponseWriter, r *http.Request) {
5454
helpers.WriteErrorStatus(w, "No active subscription available.", http.StatusForbidden)
5555
return
5656
} else if err != nil {
57-
util.LogErrorF(err, log.Fields{"error": "Cannot write new event to database"})
57+
log.WithFields(log.Fields{
58+
"context": "AddTask",
59+
"project_id": project.ID,
60+
"template_id": taskObj.TemplateID,
61+
"user_id": user.ID,
62+
}).WithError(err).Error("Cannot add task")
5863
w.WriteHeader(http.StatusInternalServerError)
5964
return
6065
}

0 commit comments

Comments
 (0)