Skip to content

Commit

Permalink
update debug for panic place
Browse files Browse the repository at this point in the history
  • Loading branch information
MindHunter86 committed Dec 18, 2023
1 parent 84f042e commit 47d05ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ func NewApp(c *cli.Context, l *zerolog.Logger, s io.Writer) (app *App) {
Str("user-agent", c.Get(fiber.HeaderUserAgent)).
Msg("")

fmt.Printf("Error debug: %+v\n", err)
fmt.Printf("Context debug: %+v\n", c)

// panic here
rlog(c).Error().Msgf("%v", err)
return c.SendStatus(e.Code)
Expand Down

0 comments on commit 47d05ca

Please sign in to comment.