diff options
author | Emile <hanemile@protonmail.com> | 2019-10-19 19:37:10 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-10-19 19:37:10 +0200 |
commit | c0ddf384e411b00a393bd718d4d5fc1df3992e75 (patch) | |
tree | a3e47f05a27d7f674d376a4e151b285add6b8d80 | |
parent | 76774b0ffa860fa47061b49a3ca61ece444d051d (diff) |
uuid foo
-rw-r--r-- | src/http.go | 3 |
1 files changed, 2 insertions, 1 deletions
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 |