diff options
author | Francis Lavoie <lavofr@gmail.com> | 2022-04-25 12:12:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-25 10:12:10 -0600 |
commit | 3a1e0dbf47429f3ae7ddcbbd9acc3707b0ad0083 (patch) | |
tree | 9851651f43be2d09103a1c76c15430c0ed5e8f6c /cmd | |
parent | 77a77c0219d389717ba3b8f8e28bad3462fab655 (diff) |
httpcaddyfile: Deprecate paths in site addresses; use zap logs (#4728)
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/commandfuncs.go | 4 |
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 |