Skip to content

Commit

Permalink
fix RVV-B0013
Browse files Browse the repository at this point in the history
  • Loading branch information
MindHunter86 committed Jun 29, 2024
1 parent 06cd067 commit 184720b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/service/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (m *Service) fiberMiddlewareInitialization() {
Dur("latency", elapsed).
Str("payload", string(rpayload)).
Str("user-agent", c.Get(fiber.HeaderUserAgent)).Msg("")
m.rsyslog(c).WithLevel(lvl).
rsyslog(c).WithLevel(lvl).
Int("status", status).
Str("method", c.Method()).
Str("path", c.Path()).
Expand Down
3 changes: 1 addition & 2 deletions internal/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,10 @@ LOOP:
}
}

// ? TO DELETE
func rlog(c *fiber.Ctx) *zerolog.Logger {
return c.Locals("logger").(*zerolog.Logger)
}

func (m *Service) rsyslog(c *fiber.Ctx) (l *zerolog.Logger) {
func rsyslog(c *fiber.Ctx) (l *zerolog.Logger) {
return c.Locals("syslogger").(*zerolog.Logger)
}

0 comments on commit 184720b

Please sign in to comment.