Skip to content

Commit

Permalink
log: remove error stack
Browse files Browse the repository at this point in the history
  • Loading branch information
dhcmrlchtdj committed Nov 17, 2024
1 parent 000db2c commit c67b571
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/middleware/auth/cookie/cookie.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ func New(cfg Config) fiber.Handler {
credential, err := cfg.Validator(ctx, token)
if err != nil {
Clear(c)
zerolog.Ctx(ctx).Debug().
zerolog.Ctx(ctx).Info().
Str("module", "server.auth.cookie").
Stack().
Str("token", token).
Err(err).
Send()
return fiber.NewError(fiber.StatusUnauthorized, err.Error())
Expand Down

0 comments on commit c67b571

Please sign in to comment.