about summary refs log tree commit diff
diff options
context:
space:
mode:
-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