mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-27 06:03:48 +03: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 {
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue