diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2020-03-20 12:02:37 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2020-03-20 12:02:46 -0600 |
commit | 6b60a301c02222c483dc9e2a03077c03d2c6ef5b (patch) | |
tree | 32aeca58ebe749eb90c9e01e561ce7147dd1516e /caddyconfig/httpcaddyfile | |
parent | d6632e214555a49afa5c06619d8a3e32e9d82fca (diff) |
httpcaddyfile: Append access logger name to log's includes (fix #3110)
Diffstat (limited to 'caddyconfig/httpcaddyfile')
-rw-r--r-- | caddyconfig/httpcaddyfile/builtins.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/caddyconfig/httpcaddyfile/builtins.go b/caddyconfig/httpcaddyfile/builtins.go index c354f84..a88c27c 100644 --- a/caddyconfig/httpcaddyfile/builtins.go +++ b/caddyconfig/httpcaddyfile/builtins.go @@ -555,8 +555,8 @@ func parseLog(h Helper) ([]ConfigValue, error) { if !ok { logCounter = 0 } - cl.Include = []string{"http.log.access"} val.name = fmt.Sprintf("log%d", logCounter) + cl.Include = []string{"http.log.access." + val.name} val.log = cl logCounter++ h.State["logCounter"] = logCounter |