about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-10-19 19:37:10 +0200
committerEmile <hanemile@protonmail.com>2019-10-19 19:37:10 +0200
commitc0ddf384e411b00a393bd718d4d5fc1df3992e75 (patch)
treea3e47f05a27d7f674d376a4e151b285add6b8d80 /src
parent76774b0ffa860fa47061b49a3ca61ece444d051d (diff)
uuid foo
Diffstat (limited to 'src')
-rw-r--r--src/http.go3
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