mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-03 11:22:45 +02:00
logging: remove ctx from global log methods (#5337)
* log: remove warn * log: update debug * log: update info * remove level, log * remove contextLogger function
This commit is contained in:
parent
1ccaf1b22b
commit
d2c14cd6d2
53 changed files with 150 additions and 198 deletions
|
@ -33,7 +33,7 @@ func (l loggingRoundTripper) RoundTrip(req *http.Request) (*http.Response, error
|
|||
if res != nil {
|
||||
statusCode = res.StatusCode
|
||||
}
|
||||
evt := log.Debug(req.Context()).
|
||||
evt := log.Ctx(req.Context()).Debug().
|
||||
Str("method", req.Method).
|
||||
Str("authority", req.URL.Host).
|
||||
Str("path", req.URL.Path).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue