From 08f1c19bc338170bb38fde8669c8feaa47535e50 Mon Sep 17 00:00:00 2001 From: jbergner Date: Tue, 29 Apr 2025 14:43:24 +0200 Subject: [PATCH] Patch --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index 38a231a..de0897b 100644 --- a/main.go +++ b/main.go @@ -488,6 +488,10 @@ func (s *server) verifyJWS(ctx context.Context, w http.ResponseWriter, r *http.R func (s *server) ServeHTTP(w http.ResponseWriter, r *http.Request) { ctx := r.Context() + lg := slog.New(slog.NewJSONHandler(os.Stdout, nil)) + slog.SetDefault(lg) + lg.Info("Request", time.Now().Format("2026-12-18 18:06:00"), r.URL.Path) + switch { case (r.Method == http.MethodHead || r.Method == http.MethodGet) && r.URL.Path == "/acme/new-nonce": n := uuid.New().String()