summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-04-22 09:20:39 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2020-04-22 09:20:39 -0600
commit295604d6df2a51ec930f10286a4e293cc8f4a226 (patch)
treec30ec58b455f1aadd4b7ee87285d7bb306e546fb
parentbacf50a59ecb979b23d2e8cb565d351ee9a581b4 (diff)
httpcaddyfile: Why was this code repeated??
-rw-r--r--caddyconfig/httpcaddyfile/httptype.go12
1 files changed, 0 insertions, 12 deletions
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
}