mirror of
https://github.com/distribution/distribution.git
synced 2025-07-31 22:55:29 +00:00
Merge pull request #2854 from manishtomar/log-authed-name
Log authorized username
This commit is contained in:
commit
d3ddc3572c
@ -862,7 +862,7 @@ func (app *App) authorized(w http.ResponseWriter, r *http.Request, context *Cont
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
dcontext.GetLogger(ctx).Info("authorized request")
|
dcontext.GetLogger(ctx, auth.UserNameKey).Info("authorized request")
|
||||||
// TODO(stevvooe): This pattern needs to be cleaned up a bit. One context
|
// TODO(stevvooe): This pattern needs to be cleaned up a bit. One context
|
||||||
// should be replaced by another, rather than replacing the context on a
|
// should be replaced by another, rather than replacing the context on a
|
||||||
// mutable object.
|
// mutable object.
|
||||||
|
Loading…
Reference in New Issue
Block a user