about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-05-01 21:46:12 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-05-01 21:55:13 +0200
commitd501bef48b80b0a2c26d20b716aaa2c7528a9885 (patch)
treebd3ea091b99196c4ebdcca02a9a0356b5612ada9
parentrest-api: return request body as string (diff)
downloadfs-tracer-backend-d501bef48b80b0a2c26d20b716aaa2c7528a9885.tar.gz
fs-tracer-backend-d501bef48b80b0a2c26d20b716aaa2c7528a9885.tar.bz2
fs-tracer-backend-d501bef48b80b0a2c26d20b716aaa2c7528a9885.zip
rest-api: Add logs
-rw-r--r--src/rest-api/cmd/main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rest-api/cmd/main.go b/src/rest-api/cmd/main.go
index 56cc6a3..c58d353 100644
--- a/src/rest-api/cmd/main.go
+++ b/src/rest-api/cmd/main.go
@@ -3,6 +3,7 @@ package main
 import (
 	"fmt"
 	"io"
+	"log"
 	"net/http"
 )
 
@@ -19,4 +20,5 @@ func handleRequest(w http.ResponseWriter, r *http.Request) {
 	}
 
 	fmt.Fprint(w, "Hello, World!", string(bytes))
+	log.Println("Request received", r.RemoteAddr, string(bytes))
 }