mirror of https://github.com/statping/statping
manifest.json 404 error fix, removed sentry logging, slowed down AWS translations calls
parent
2612402a77
commit
26a1d49789
|
@ -1,3 +1,8 @@
|
|||
# 0.90.74 (12-18-2020)
|
||||
- Fixed issue with favicon/manifest.json throwing 404 errors
|
||||
- Modified language go:generate script to slowdown for 429 errors
|
||||
- Removed Sentry error logging functionality
|
||||
|
||||
# 0.90.73 (12-15-2020)
|
||||
- Removed complexity in code for http server
|
||||
- Removed internal cache functionality (not useful, needs refactor)
|
||||
|
|
|
@ -19,11 +19,7 @@
|
|||
"@fortawesome/free-brands-svg-icons": "^5.12.1",
|
||||
"@fortawesome/free-solid-svg-icons": "^5.12.0",
|
||||
"@fortawesome/vue-fontawesome": "^0.1.9",
|
||||
"@sentry/browser": "^5.20.1",
|
||||
"@sentry/integrations": "^5.20.1",
|
||||
"@sentry/tracing": "^5.29.0",
|
||||
"@sentry/vue": "^5.29.0",
|
||||
"apexcharts": "^3.6.6",
|
||||
"apexcharts": "^3.23.0",
|
||||
"axios": "^0.19.1",
|
||||
"codemirror-colorpicker": "^1.9.66",
|
||||
"core-js": "^3.6.5",
|
||||
|
|
|
@ -7,8 +7,8 @@ const tokenKey = "statping_auth";
|
|||
|
||||
class Api {
|
||||
constructor() {
|
||||
this.version = "0.90.72";
|
||||
this.commit = "fe63947d632083ad7d8e9adcf2d0d7e85383861d";
|
||||
this.version = "0.90.74";
|
||||
this.commit = "2612402a7782f28ca0b7fc10c941d8c4a1a5acc6";
|
||||
}
|
||||
|
||||
async oauth() {
|
||||
|
|
|
@ -2321,7 +2321,7 @@ OluFxewsEO0QNDrfFb+0gnjYlnGqOFcZjUMXbDdY5oLSPtXohynuTK1qyQ==
|
|||
</div>
|
||||
|
||||
<div class="text-center small text-dim" v-pre>
|
||||
Automatically generated from Statping's Wiki on 2020-11-01 17:17:43.627285 +0000 UTC
|
||||
Automatically generated from Statping's Wiki on 2020-12-18 10:22:03.386528 +0000 UTC
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -2109,10 +2109,10 @@ anymatch@~3.1.1:
|
|||
normalize-path "^3.0.0"
|
||||
picomatch "^2.0.4"
|
||||
|
||||
apexcharts@^3.6.6:
|
||||
version "3.20.0"
|
||||
resolved "https://registry.yarnpkg.com/apexcharts/-/apexcharts-3.20.0.tgz#768bb963d2bd87abe3a37a6ee35c7fc7d43bbfb7"
|
||||
integrity sha512-DuQ9SlFPJBJwamYudzwf/Z6KMaIRUhnVBQk/TBa3mXzN2SwS3GgGz7V39OS1GfcPlPUTTy8vXv91M8pYmfFkCg==
|
||||
apexcharts@^3.23.0:
|
||||
version "3.23.0"
|
||||
resolved "https://registry.yarnpkg.com/apexcharts/-/apexcharts-3.23.0.tgz#12877aa789d658aef5eb930af6c3b8850fefd925"
|
||||
integrity sha512-1mV6qouuopvYR6UFSXi/Ge4jRMe//zyAN3aK05mAs4Iuet8mA0w31Q6OU6syD77bawt9p3YKNOmNF7OO2u9w0g==
|
||||
dependencies:
|
||||
svg.draggable.js "^2.2.2"
|
||||
svg.easing.js "^2.0.0"
|
||||
|
|
|
@ -97,7 +97,7 @@ func apiCoreHandler(w http.ResponseWriter, r *http.Request) {
|
|||
utils.Params.Set("LANGUAGE", app.Language)
|
||||
app.UseCdn = null.NewNullBool(c.UseCdn.Bool)
|
||||
app.AllowReports = null.NewNullBool(c.AllowReports.Bool)
|
||||
utils.SentryInit(app.AllowReports.Bool)
|
||||
|
||||
if err := app.Update(); err != nil {
|
||||
sendErrorJson(err, w, r)
|
||||
return
|
||||
|
|
|
@ -4,7 +4,6 @@ import (
|
|||
"encoding/base64"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/getsentry/sentry-go"
|
||||
"github.com/pkg/errors"
|
||||
_ "github.com/statping/statping/notifiers"
|
||||
"github.com/statping/statping/source"
|
||||
|
@ -286,13 +285,6 @@ type HTTPTest struct {
|
|||
}
|
||||
|
||||
func logTest(t *testing.T, err error) error {
|
||||
e := sentry.NewEvent()
|
||||
e.Environment = "testing"
|
||||
e.Timestamp = utils.Now().Unix()
|
||||
e.Message = fmt.Sprintf("failed test %s", t.Name())
|
||||
e.Transaction = t.Name()
|
||||
sentry.CaptureEvent(e)
|
||||
sentry.CaptureException(err)
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
package handlers
|
||||
|
||||
import (
|
||||
sentryhttp "github.com/getsentry/sentry-go/http"
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
"github.com/statping/statping/source"
|
||||
|
@ -38,14 +37,13 @@ func Router() *mux.Router {
|
|||
}
|
||||
|
||||
bPath := utils.Params.GetString("BASE_PATH")
|
||||
sentryHandler := sentryhttp.New(sentryhttp.Options{Timeout: 5 * time.Second})
|
||||
|
||||
if bPath != "" {
|
||||
basePath = "/" + bPath + "/"
|
||||
r = r.PathPrefix("/" + bPath).Subrouter()
|
||||
r.Handle("", sentryHandler.Handle(http.HandlerFunc(indexHandler)))
|
||||
r.Handle("", http.HandlerFunc(indexHandler))
|
||||
} else {
|
||||
r.Handle("/", sentryHandler.Handle(http.HandlerFunc(indexHandler)))
|
||||
r.Handle("/", http.HandlerFunc(indexHandler))
|
||||
}
|
||||
|
||||
if !utils.Params.GetBool("DISABLE_LOGS") {
|
||||
|
|
|
@ -13,6 +13,7 @@ import (
|
|||
"io/ioutil"
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -76,6 +77,8 @@ func main() {
|
|||
|
||||
fmt.Printf("%s | English: %s | French: %s | German: %s | Russian: %s\n", translated.Key, translated.En, translated.Fr, translated.De, translated.Ru)
|
||||
line++
|
||||
|
||||
time.Sleep(1 * time.Second)
|
||||
}
|
||||
|
||||
//CreateGo(translations)
|
||||
|
|
|
@ -196,7 +196,7 @@ func CopyAllToPublic(box *rice.Box) error {
|
|||
if exclude[info.Name()] {
|
||||
return nil
|
||||
}
|
||||
if strings.Contains(path, "js") {
|
||||
if strings.Contains(path, "/js") {
|
||||
return nil
|
||||
}
|
||||
if info.IsDir() {
|
||||
|
|
|
@ -1 +1 @@
|
|||
0.90.73
|
||||
0.90.74
|
||||
|
|
Loading…
Reference in New Issue