feat: add trace logging

This commit is contained in:
Stavros
2025-10-11 15:27:01 +03:00
parent ed20d2cf51
commit 9b76a84ee2
5 changed files with 14 additions and 2 deletions

View File

@@ -12,6 +12,7 @@ import (
"time"
"tinyauth/internal/config"
"github.com/rs/zerolog/log"
"golang.org/x/oauth2"
)
@@ -110,6 +111,8 @@ func (generic *GenericOAuthService) Userinfo() (config.Claims, error) {
return user, err
}
log.Trace().Str("body", string(body)).Msg("Userinfo response body")
err = json.Unmarshal(body, &user)
if err != nil {
return user, err