diff --git a/hrp/cmd/cli/main.go b/hrp/cmd/cli/main.go index a66ec532..f5c1010c 100644 --- a/hrp/cmd/cli/main.go +++ b/hrp/cmd/cli/main.go @@ -1,11 +1,9 @@ package main import ( - "os" "time" "github.com/getsentry/sentry-go" - "github.com/rs/zerolog/log" "github.com/httprunner/httprunner/hrp/cmd" ) @@ -16,9 +14,11 @@ func main() { // report panic to sentry sentry.CurrentHub().Recover(err) sentry.Flush(time.Second * 5) - log.Error().Interface("err", err).Msg("recover panic") - os.Exit(1) + + // print panic trace + panic(err) } }() + cmd.Execute() }