0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-01-13 22:51:08 -05:00

httpcaddyfile: Append access logger name to log's includes (fix #3110)

This commit is contained in:
Matthew Holt 2020-03-20 12:02:37 -06:00
parent d6632e2145
commit 6b60a301c0

View file

@ -555,8 +555,8 @@ func parseLog(h Helper) ([]ConfigValue, error) {
if !ok { if !ok {
logCounter = 0 logCounter = 0
} }
cl.Include = []string{"http.log.access"}
val.name = fmt.Sprintf("log%d", logCounter) val.name = fmt.Sprintf("log%d", logCounter)
cl.Include = []string{"http.log.access." + val.name}
val.log = cl val.log = cl
logCounter++ logCounter++
h.State["logCounter"] = logCounter h.State["logCounter"] = logCounter