diff options
| author | mo khan <mo@mokhan.ca> | 2025-03-27 11:47:58 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-03-27 11:47:58 -0600 |
| commit | 3faa19c3aeae15070f2e143b031daaddfe296735 (patch) | |
| tree | dc86e49908920c10479b9e9905c58c0c44e2cee6 /pkg/authz | |
| parent | b08580ff78708519f0594a62531cf6ce45559265 (diff) | |
feat: start to add structured logging
Diffstat (limited to 'pkg/authz')
| -rw-r--r-- | pkg/authz/token.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/authz/token.go b/pkg/authz/token.go index 1822a217..5985a0fc 100644 --- a/pkg/authz/token.go +++ b/pkg/authz/token.go @@ -1,11 +1,11 @@ package authz import ( - "fmt" "net/http" "strings" "github.com/lestrrat-go/jwx/v3/jwt" + xlog "gitlab.com/mokhax/spike/pkg/log" ) func TokenFrom(r *http.Request) jwt.Token { @@ -22,7 +22,7 @@ func TokenFrom(r *http.Request) jwt.Token { ) if err != nil { - fmt.Printf("error: %v\n", err) + xlog.WithFields(r, xlog.Fields{"error": err}) return jwt.New() } |
