diff options
author | Francis Lavoie <lavofr@gmail.com> | 2020-04-22 11:05:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-22 09:05:26 -0600 |
commit | bacf50a59ecb979b23d2e8cb565d351ee9a581b4 (patch) | |
tree | 00d7652fe3aa501adedfa455596ebe85c4ecfa04 /modules/caddyhttp | |
parent | da8686c4b974ba0b35f3be5a43b6a2f3a528fed2 (diff) |
caddyhttp: Fix common_log format's user ID placeholder (#3300)
Diffstat (limited to 'modules/caddyhttp')
-rw-r--r-- | modules/caddyhttp/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/server.go b/modules/caddyhttp/server.go index 96bc722..05b415c 100644 --- a/modules/caddyhttp/server.go +++ b/modules/caddyhttp/server.go @@ -449,7 +449,7 @@ func cloneURL(from, to *url.URL) { const ( // commonLogFormat is the common log format. https://en.wikipedia.org/wiki/Common_Log_Format - commonLogFormat = `{http.request.remote.host} ` + commonLogEmptyValue + ` {http.authentication.user.id} [{time.now.common_log}] "{http.request.orig_method} {http.request.orig_uri} {http.request.proto}" {http.response.status} {http.response.size}` + commonLogFormat = `{http.request.remote.host} ` + commonLogEmptyValue + ` {http.auth.user.id} [{time.now.common_log}] "{http.request.orig_method} {http.request.orig_uri} {http.request.proto}" {http.response.status} {http.response.size}` // commonLogEmptyValue is the common empty log value. commonLogEmptyValue = "-" |