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:
parent
d6632e2145
commit
6b60a301c0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue