1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-21 18:11:09 +00:00

Improve Fever API logging

This commit is contained in:
Frédéric Guillot 2020-08-08 21:19:47 -07:00
parent bf443a65e2
commit a102843789
2 changed files with 11 additions and 7 deletions

View file

@ -44,7 +44,7 @@ func (m *middleware) serve(next http.Handler) http.Handler {
return
}
logger.Info("[Fever] User #%d is authenticated", user.ID)
logger.Info("[Fever] User #%d is authenticated with user agent %q", user.ID, r.UserAgent())
m.store.SetLastLogin(user.ID)
ctx := r.Context()