about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--main.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/main.go b/main.go
index 1020517..ab2e8d2 100644
--- a/main.go
+++ b/main.go
@@ -129,10 +129,9 @@ func generateHandler(w http.ResponseWriter, r *http.Request) {
 
 		log.Printf("galaxy range: %f", galaxyRange)
 		log.Printf("%v\n", result)
-		_, err := fmt.Fprintf(w, "%f, %f, %f\n", result.x, result.y, result.z)
-		if err != nil {
-			panic(err)
-		}
+
+		log.SetOutput(w)
+		log.Printf("%f, %f, %f\n", result.x, result.y, result.z)
 	}
 }