summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/staticresp.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2022-09-15 23:10:16 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2022-09-15 23:10:16 -0600
commitb6cec3789342c2408d878359d4ed07e3789611ac (patch)
treeb1d9c1a5c783f0e7c97427d9b3770fae60fce7d1 /modules/caddyhttp/staticresp.go
parent48d723c07c52d76755ee323581a20777699f1557 (diff)
caddyhttp: Add --debug flag to commands
file-server and reverse-proxy This might be useful!
Diffstat (limited to 'modules/caddyhttp/staticresp.go')
-rw-r--r--modules/caddyhttp/staticresp.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/caddyhttp/staticresp.go b/modules/caddyhttp/staticresp.go
index ccc70e2..411a7bc 100644
--- a/modules/caddyhttp/staticresp.go
+++ b/modules/caddyhttp/staticresp.go
@@ -31,6 +31,7 @@ import (
"github.com/caddyserver/caddy/v2/caddyconfig"
"github.com/caddyserver/caddy/v2/caddyconfig/caddyfile"
caddycmd "github.com/caddyserver/caddy/v2/cmd"
+ "go.uber.org/zap"
)
func init() {
@@ -403,7 +404,7 @@ func cmdRespond(fl caddycmd.Flags) (int, error) {
if debug {
cfg.Logging = &caddy.Logging{
Logs: map[string]*caddy.CustomLog{
- "default": {Level: "DEBUG"},
+ "default": {Level: zap.DebugLevel.CapitalString()},
},
}
}