mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
feat(http): add error logging for API responses (#1819)
* feat(api): add error logging for API responses * fix: revert import order * feat(http): log msg * feat(http): remove extra server logger --------- Co-authored-by: ze0s <ze0s@riseup.net>
This commit is contained in:
parent
74eea79215
commit
fc137f2077
2 changed files with 25 additions and 10 deletions
|
@ -125,7 +125,7 @@ func (s Server) Handler() http.Handler {
|
|||
|
||||
r.Use(c.Handler)
|
||||
|
||||
encoder := encoder{}
|
||||
encoder := newEncoder(s.log)
|
||||
|
||||
r.Route("/api", func(r chi.Router) {
|
||||
r.Route("/auth", newAuthHandler(encoder, s.log, s, s.config.Config, s.cookieStore, s.authService).Routes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue