From d501bef48b80b0a2c26d20b716aaa2c7528a9885 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Wed, 1 May 2024 21:46:12 +0200 Subject: rest-api: Add logs --- src/rest-api/cmd/main.go | 2 ++ 1 file changed, 2 insertions(+) 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)) } -- cgit 1.4.1