This commit is contained in:
7
main.go
7
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, "")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user