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