diff --git a/modules/setting/config_provider.go b/modules/setting/config_provider.go index 53dadf55b380b..65030e5e56ab6 100644 --- a/modules/setting/config_provider.go +++ b/modules/setting/config_provider.go @@ -324,9 +324,10 @@ func LogStartupProblem(skip int, level log.Level, format string, args ...any) { StartupProblems = append(StartupProblems, msg) } +// deprecatedSetting creates a warning about a setting that will be removed in the near future func deprecatedSetting(rootCfg ConfigProvider, oldSection, oldKey, newSection, newKey, version string) { if rootCfg.Section(oldSection).HasKey(oldKey) { - LogStartupProblem(1, log.ERROR, "Deprecation: config option `[%s].%s` presents, please use `[%s].%s` instead because this fallback will be removed in %s", oldSection, oldKey, newSection, newKey, version) + LogStartupProblem(1, log.ERROR, "Deprecation: config option `[%s].%s` is present, please use `[%s].%s` instead. This fallback will be removed in %s", oldSection, oldKey, newSection, newKey, version) } }