summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorFrancis Lavoie <lavofr@gmail.com>2022-04-25 12:12:10 -0400
committerGitHub <noreply@github.com>2022-04-25 10:12:10 -0600
commit3a1e0dbf47429f3ae7ddcbbd9acc3707b0ad0083 (patch)
tree9851651f43be2d09103a1c76c15430c0ed5e8f6c /cmd
parent77a77c0219d389717ba3b8f8e28bad3462fab655 (diff)
httpcaddyfile: Deprecate paths in site addresses; use zap logs (#4728)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/commandfuncs.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/commandfuncs.go b/cmd/commandfuncs.go
index 79604d9..26b005b 100644
--- a/cmd/commandfuncs.go
+++ b/cmd/commandfuncs.go
@@ -496,7 +496,9 @@ func cmdAdaptConfig(fl Flags) (int, error) {
if warn.Directive != "" {
msg = fmt.Sprintf("%s: %s", warn.Directive, warn.Message)
}
- fmt.Fprintf(os.Stderr, "[WARNING][%s] %s:%d: %s\n", adaptCmdAdapterFlag, warn.File, warn.Line, msg)
+ caddy.Log().Named(adaptCmdAdapterFlag).Warn(msg,
+ zap.String("file", warn.File),
+ zap.Int("line", warn.Line))
}
// validate output if requested