Let it crash

This commit is contained in:
wpetit 2022-05-11 16:17:40 +02:00
parent 33dbb6ea47
commit a9a8109cb6
1 changed files with 5 additions and 8 deletions

View File

@ -1,7 +1,11 @@
package main
import (
"flag"
"fmt"
"log"
"net/http"
"os"
"forge.cadoles.com/wpetit/hydra-passwordless/internal/route"
"github.com/getsentry/sentry-go"
@ -9,12 +13,6 @@ import (
"github.com/go-chi/chi/middleware"
"gitlab.com/wpetit/goweb/middleware/container"
"flag"
"fmt"
"log"
"os"
"forge.cadoles.com/wpetit/hydra-passwordless/internal/config"
sentryhttp "github.com/getsentry/sentry-go/http"
"github.com/pkg/errors"
@ -75,7 +73,6 @@ func main() {
} else {
conf = config.NewDefault()
}
}
// Dump configuration if asked
@ -125,7 +122,7 @@ func main() {
// Define base middlewares
r.Use(middleware.Logger)
r.Use(middleware.Recoverer)
// r.Use(middleware.Recoverer)
if useSentry {
sentryMiddleware := sentryhttp.New(sentryhttp.Options{