summaryrefslogtreecommitdiff
path: root/caddyconfig/httpcaddyfile
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-03-20 12:02:37 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2020-03-20 12:02:46 -0600
commit6b60a301c02222c483dc9e2a03077c03d2c6ef5b (patch)
tree32aeca58ebe749eb90c9e01e561ce7147dd1516e /caddyconfig/httpcaddyfile
parentd6632e214555a49afa5c06619d8a3e32e9d82fca (diff)
httpcaddyfile: Append access logger name to log's includes (fix #3110)
Diffstat (limited to 'caddyconfig/httpcaddyfile')
-rw-r--r--caddyconfig/httpcaddyfile/builtins.go2
1 files changed, 1 insertions, 1 deletions
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