From 6b60a301c02222c483dc9e2a03077c03d2c6ef5b Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 20 Mar 2020 12:02:37 -0600 Subject: httpcaddyfile: Append access logger name to log's includes (fix #3110) --- caddyconfig/httpcaddyfile/builtins.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'caddyconfig/httpcaddyfile') 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 -- cgit v1.2.3