Remove sentry and error reporting

This commit is contained in:
Jamie Curnow
2023-07-20 15:19:42 +10:00
parent 6d6021c9bb
commit fd7095ad88
18 changed files with 26 additions and 144 deletions

View File

@ -8,12 +8,11 @@ import (
)
type healthCheckResponse struct {
Version string `json:"version"`
Commit string `json:"commit"`
AcmeShVersion string `json:"acme.sh"`
Healthy bool `json:"healthy"`
IsSetup bool `json:"setup"`
ErrorReporting bool `json:"error_reporting"`
Version string `json:"version"`
Commit string `json:"commit"`
AcmeShVersion string `json:"acme.sh"`
Healthy bool `json:"healthy"`
IsSetup bool `json:"setup"`
}
// Health returns the health of the api
@ -21,12 +20,11 @@ type healthCheckResponse struct {
func Health() func(http.ResponseWriter, *http.Request) {
return func(w http.ResponseWriter, r *http.Request) {
health := healthCheckResponse{
Version: config.Version,
Commit: config.Commit,
Healthy: true,
IsSetup: config.IsSetup,
AcmeShVersion: acme.GetAcmeShVersion(),
ErrorReporting: config.ErrorReporting,
Version: config.Version,
Commit: config.Commit,
Healthy: true,
IsSetup: config.IsSetup,
AcmeShVersion: acme.GetAcmeShVersion(),
}
h.ResultResponseJSON(w, r, http.StatusOK, health)

View File

@ -12,15 +12,14 @@ import (
)
var (
r = NewRouter()
version = "3.0.0"
commit = "abcdefgh"
sentryDSN = ""
r = NewRouter()
version = "3.0.0"
commit = "abcdefgh"
)
// Tear up/down
func TestMain(m *testing.M) {
config.Init(&version, &commit, &sentryDSN)
config.Init(&version, &commit)
code := m.Run()
os.Exit(code)
}