Add deprecation notice for NO_RELOAD (#2643)
Signed-off-by: Xiao An <hac@zju.edu.cn>
This commit is contained in:
parent
97e2a53a65
commit
89a4b9bd45
2 changed files with 2 additions and 0 deletions
|
@ -159,6 +159,7 @@ func autoParse(c *caddy.Controller) (Auto, error) {
|
|||
a.loader.ReloadInterval = d
|
||||
|
||||
case "no_reload":
|
||||
log.Warning("NO_RELOAD of directory is deprecated. Use RELOAD (set to 0) instead. See https://coredns.io/plugins/auto/#syntax")
|
||||
a.loader.ReloadInterval = 0
|
||||
|
||||
case "upstream":
|
||||
|
|
|
@ -113,6 +113,7 @@ func fileParse(c *caddy.Controller) (Zones, error) {
|
|||
reload = d
|
||||
|
||||
case "no_reload":
|
||||
log.Warning("NO_RELOAD of directory is deprecated. Use RELOAD (set to 0) instead. See https://coredns.io/plugins/file/#syntax")
|
||||
reload = 0
|
||||
|
||||
case "upstream":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue