Skip to content
Snippets Groups Projects
Commit ec6566c0 authored by Manish Tomar's avatar Manish Tomar
Browse files

Log authorized username


This is useful to know which user pulled/pushed which repo.

Signed-off-by: default avatarManish Tomar <manish.tomar@docker.com>
parent 0d3efadf
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -862,7 +862,7 @@ func (app *App) authorized(w http.ResponseWriter, r *http.Request, context *Cont
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
// should be replaced by another, rather than replacing the context on a
// mutable object.
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment