Commit 89a4b9bd authored by Xiao An's avatar Xiao An Committed by Miek Gieben

Add deprecation notice for NO_RELOAD (#2643)

Signed-off-by: default avatarXiao An <hac@zju.edu.cn>
parent 97e2a53a
...@@ -159,6 +159,7 @@ func autoParse(c *caddy.Controller) (Auto, error) { ...@@ -159,6 +159,7 @@ func autoParse(c *caddy.Controller) (Auto, error) {
a.loader.ReloadInterval = d a.loader.ReloadInterval = d
case "no_reload": 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 a.loader.ReloadInterval = 0
case "upstream": case "upstream":
......
...@@ -113,6 +113,7 @@ func fileParse(c *caddy.Controller) (Zones, error) { ...@@ -113,6 +113,7 @@ func fileParse(c *caddy.Controller) (Zones, error) {
reload = d reload = d
case "no_reload": 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 reload = 0
case "upstream": case "upstream":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment