about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-03-08 12:57:04 +0100
committerEmile <hanemile@protonmail.com>2019-03-08 12:57:04 +0100
commit01d7424f8d08e7cbb8a9d698fc38a5c1adeeb4b7 (patch)
tree47469e7a4d662255b4f202eb2fe4b0b2cbeed122
parentec03efe67c10a0bd9684938b5b06d0c03796218c (diff)
more logging
-rw-r--r--main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.go b/main.go
index c9736ed..f13d7c2 100644
--- a/main.go
+++ b/main.go
@@ -210,6 +210,12 @@ func insertStarHandler(w http.ResponseWriter, r *http.Request) {
 		panic(err)
 	}
 
+	log.Printf("x: %s", r.PostFormValue("x"))
+	log.Printf("y: %s", r.PostFormValue("y"))
+	log.Printf("vx: %s", r.PostFormValue("vx"))
+	log.Printf("vy: %s", r.PostFormValue("vy"))
+	log.Printf("m: %s", r.PostFormValue("m"))
+
 	// parse the star parameters
 	x, xParseErr := strconv.ParseFloat(r.PostFormValue("x"), 64)
 	errHandler("parse x", xParseErr)