distribution/registry/handlers
Aaron Lehmann a811c1bb57 Log username on successful requests
Currently, "response completed with error" log lines include an
`auth.user.name` key, but successful "response completed" lines do not
include this, because they are logged a few stack frames up where
`auth.user.name` is not present on the `Context`. Move the successful
request logging inside the `dispatcher` closure, where the logger on the
context automatically includes this key.

Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
2023-01-30 09:32:39 -08:00
..
api_test.go replace deprecated io/ioutil 2022-11-04 23:47:52 +01:00
app.go Log username on successful requests 2023-01-30 09:32:39 -08:00
app_test.go Merge pull request #3766 from thaJeztah/gofumpt 2022-11-04 12:19:53 +01:00
basicauth.go bump up golang v1.17 2021-10-27 15:51:30 +08:00
basicauth_prego14.go bump up golang v1.17 2021-10-27 15:51:30 +08:00
blob.go use http consts for request methods 2022-11-02 23:31:47 +01:00
blobupload.go Merge pull request #3766 from thaJeztah/gofumpt 2022-11-04 12:19:53 +01:00
catalog.go Merge pull request #3766 from thaJeztah/gofumpt 2022-11-04 12:19:53 +01:00
context.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
health_test.go replace deprecated io/ioutil 2022-11-04 23:47:52 +01:00
helpers.go replace strings.Split(N) for strings.Cut() or alternatives 2022-11-10 22:38:12 +01:00
hmac.go handlers: provide better log message on mismatched secret 2016-09-02 15:24:35 -07:00
hmac_test.go Refactor Blob Service API 2015-05-15 17:05:18 -07:00
hooks.go replace strings.Split(N) for strings.Cut() or alternatives 2022-11-10 22:38:12 +01:00
mail.go Fix gometalint errors 2019-02-04 16:01:04 -08:00
manifests.go Merge pull request #3766 from thaJeztah/gofumpt 2022-11-04 12:19:53 +01:00
tags.go use http consts for request methods 2022-11-02 23:31:47 +01:00