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 {
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