From c0ddf384e411b00a393bd718d4d5fc1df3992e75 Mon Sep 17 00:00:00 2001 From: Emile Date: Sat, 19 Oct 2019 19:37:10 +0200 Subject: uuid foo --- src/http.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/http.go b/src/http.go index 5f137cd..cf66dce 100644 --- a/src/http.go +++ b/src/http.go @@ -82,11 +82,12 @@ func createPostHandler(w http.ResponseWriter, r *http.Request) { } // Create the new challenge in the database - err = dbNewChallenge(newChallenge) + uuid, err := dbNewChallenge(newChallenge) if err != nil { log.Println(err) return } + log.Printf("Create a new challenge. UUID: %s", uuid) } // viewGetHandler returns a list of all challenges in the database -- cgit 1.4.1