Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
httpcaddyfile: Append access logger name to log's includes (fix #3110)
Matthew Holt committed
Mar 20, 2020 at 12:02 UTC
6b60a301c02222c483dc9e2a03077c03d2c6ef5b
1 file changed
+1
-1
caddyconfig/httpcaddyfile/builtins.go
+1
-1
@@ -555,8 +555,8 @@ func parseLog(h Helper) ([]ConfigValue, error) {
555
if !ok {
556
logCounter = 0
557
}
558
- cl.Include = []string{"http.log.access"}
558
val.name = fmt.Sprintf("log%d", logCounter)
559
+ cl.Include = []string{"http.log.access." + val.name}
560
val.log = cl
561
logCounter++
562
h.State["logCounter"] = logCounter