From 295604d6df2a51ec930f10286a4e293cc8f4a226 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Wed, 22 Apr 2020 09:20:39 -0600 Subject: httpcaddyfile: Why was this code repeated?? --- caddyconfig/httpcaddyfile/httptype.go | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'caddyconfig/httpcaddyfile') diff --git a/caddyconfig/httpcaddyfile/httptype.go b/caddyconfig/httpcaddyfile/httptype.go index 9ab6c5f..a9ee838 100644 --- a/caddyconfig/httpcaddyfile/httptype.go +++ b/caddyconfig/httpcaddyfile/httptype.go @@ -252,18 +252,6 @@ func (st ServerType) Setup(originalServerBlocks []caddyfile.ServerBlock, } } } - if len(customLogs) > 0 { - if cfg.Logging == nil { - cfg.Logging = &caddy.Logging{ - Logs: make(map[string]*caddy.CustomLog), - } - } - for _, ncl := range customLogs { - if ncl.name != "" { - cfg.Logging.Logs[ncl.name] = ncl.log - } - } - } return cfg, warnings, nil } -- cgit v1.2.3