mirror of
https://github.com/caddyserver/caddy.git
synced 2025-10-19 15:53:17 +00:00
logging: Warn for deprecated single_field encoder
This commit is contained in:
parent
6bc87ea2ff
commit
8a974a4f8f
3 changed files with 5 additions and 4 deletions
|
@ -135,6 +135,7 @@ func (SingleFieldEncoder) CaddyModule() caddy.ModuleInfo {
|
|||
|
||||
// Provision sets up the encoder.
|
||||
func (se *SingleFieldEncoder) Provision(ctx caddy.Context) error {
|
||||
caddy.Log().Named("caddy.logging.encoders.single_field").Warn("the 'single_field' encoder is deprecated and will be removed soon!")
|
||||
if se.FallbackRaw != nil {
|
||||
val, err := ctx.LoadModule(se, "FallbackRaw")
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue