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: Why was this code repeated??
Matthew Holt committed
Apr 22, 2020 at 09:20 UTC
295604d6df2a51ec930f10286a4e293cc8f4a226
1 file changed
-12
caddyconfig/httpcaddyfile/httptype.go
-12
@@ -252,18 +252,6 @@ func (st ServerType) Setup(originalServerBlocks []caddyfile.ServerBlock,
252
}
253
}
254
}
255
- if len(customLogs) > 0 {
256
- if cfg.Logging == nil {
257
- cfg.Logging = &caddy.Logging{
258
- Logs: make(map[string]*caddy.CustomLog),
259
- }
260
- }
261
- for _, ncl := range customLogs {
262
- if ncl.name != "" {
263
- cfg.Logging.Logs[ncl.name] = ncl.log
264
- }
265
- }
266
- }
255
256
return cfg, warnings, nil
257
}