Explorar o código

Added logging

Ronald Peterson %!s(int64=10) %!d(string=hai) anos
pai
achega
8a0bb26c9e
Modificáronse 2 ficheiros con 2 adicións e 0 borrados
  1. 1 0
      .gitignore
  2. 1 0
      battlecamp-go-boardgenerator/main.go

+ 1 - 0
.gitignore

@@ -1,3 +1,4 @@
 *.exe
 *.iml
 .idea/
+battlecamp-go-boardgenerator

+ 1 - 0
battlecamp-go-boardgenerator/main.go

@@ -19,6 +19,7 @@ func generateBoard(w http.ResponseWriter, r *http.Request) {
 	height, _ := strconv.Atoi(r.FormValue("height"))
 	totalWidth, _ := strconv.Atoi(r.FormValue("totalWidth"))
 	totalHeight, _ := strconv.Atoi(r.FormValue("totalHeight"))
+	log.Printf("Creating partial x=%v, y=%v, width=%v, height=%v, totalWidth=%v, totalHeight=%v", x, y, width, height, totalWidth, totalHeight)
 	b := board.NewPartial(x, y, width, height, totalWidth, totalHeight)
 	b.WriteData(w)
 }