mirror of
https://github.com/go-gitea/gitea
synced 2025-07-12 13:37:20 +00:00
Add trace logging to SSO methods (#15803)
It is currenly impossible to detect which "SSO" method is responsible for login. This PR adds some basic trace logging to these methods. Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
@ -77,6 +77,8 @@ func SessionUser(sess SessionStore) *models.User {
|
||||
if uid == nil {
|
||||
return nil
|
||||
}
|
||||
log.Trace("Session Authorization: Found user[%d]", uid)
|
||||
|
||||
id, ok := uid.(int64)
|
||||
if !ok {
|
||||
return nil
|
||||
@ -90,6 +92,8 @@ func SessionUser(sess SessionStore) *models.User {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
log.Trace("Session Authorization: Logged in user %-v", user)
|
||||
return user
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user