diff --git a/main.go b/main.go index a9895e9..e5adddb 100644 --- a/main.go +++ b/main.go @@ -636,6 +636,10 @@ func (s *server) handleFinalize(ctx context.Context, w http.ResponseWriter, r *h func (s *server) handleGetOrder(ctx context.Context, w http.ResponseWriter, r *http.Request) { id := path.Base(r.URL.Path) + lg := slog.New(slog.NewJSONHandler(os.Stdout, nil)) + slog.SetDefault(lg) + lg.Info("handleGetOrder", id, "") + var raw []byte var status, finalize string var certURL sql.NullString @@ -656,8 +660,9 @@ func (s *server) handleGetOrder(ctx context.Context, w http.ResponseWriter, r *h } if certURL.Valid { resp.CertURL = certURL.String + lg.Info("handleGetOrder", "Step1", "") } - + lg.Info("handleGetOrder", "Step2", "") s.jsonResponse(w, http.StatusOK, resp, "") }