1
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-16 21:56:40 -05:00

caddyhttp: Fix common_log format's user ID placeholder (#3300)

This commit is contained in:
Francis Lavoie 2020-04-22 11:05:26 -04:00 committed by GitHub
parent da8686c4b9
commit bacf50a59e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -449,7 +449,7 @@ func cloneURL(from, to *url.URL) {
const ( const (
// commonLogFormat is the common log format. https://en.wikipedia.org/wiki/Common_Log_Format // 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 is the common empty log value.
commonLogEmptyValue = "-" commonLogEmptyValue = "-"