plugin/error: use warning instead of warn (#4738)

We use the 'WARNING' in the logs, instead of warn, so make the change
here as well for consistency sake.

Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
Miek Gieben
2021-07-09 18:38:58 +02:00
committed by GitHub
parent bdaa2a5527
commit a26462c28c
3 changed files with 5 additions and 5 deletions

View File

@@ -92,7 +92,7 @@ func parseLogLevel(c *caddy.Controller, args []string) (func(format string, v ..
}
switch args[2] {
case "warn":
case "warning":
return log.Warningf, nil
case "error":
return log.Errorf, nil
@@ -101,6 +101,6 @@ func parseLogLevel(c *caddy.Controller, args []string) (func(format string, v ..
case "debug":
return log.Debugf, nil
default:
return nil, c.Err("unknown log level argument in consolidate")
return nil, c.Errf("unknown log level argument in consolidate: %s", args[2])
}
}