diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2022-09-15 23:10:16 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2022-09-15 23:10:16 -0600 |
commit | b6cec3789342c2408d878359d4ed07e3789611ac (patch) | |
tree | b1d9c1a5c783f0e7c97427d9b3770fae60fce7d1 /caddyconfig | |
parent | 48d723c07c52d76755ee323581a20777699f1557 (diff) |
caddyhttp: Add --debug flag to commands
file-server and reverse-proxy
This might be useful!
Diffstat (limited to 'caddyconfig')
-rw-r--r-- | caddyconfig/httpcaddyfile/httptype.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/caddyconfig/httpcaddyfile/httptype.go b/caddyconfig/httpcaddyfile/httptype.go index 9cf386a..7159454 100644 --- a/caddyconfig/httpcaddyfile/httptype.go +++ b/caddyconfig/httpcaddyfile/httptype.go @@ -223,7 +223,7 @@ func (st ServerType) Setup(inputServerBlocks []caddyfile.ServerBlock, hasDefaultLog = true } if _, ok := options["debug"]; ok && ncl.log.Level == "" { - ncl.log.Level = "DEBUG" + ncl.log.Level = zap.DebugLevel.CapitalString() } customLogs = append(customLogs, ncl) } @@ -241,7 +241,7 @@ func (st ServerType) Setup(inputServerBlocks []caddyfile.ServerBlock, if _, ok := options["debug"]; ok { customLogs = append(customLogs, namedCustomLog{ name: "default", - log: &caddy.CustomLog{Level: "DEBUG"}, + log: &caddy.CustomLog{Level: zap.DebugLevel.CapitalString()}, }) } } |