diff options
-rw-r--r-- | src/rest-api/cmd/main.go | 2 |
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)) } |