Skip to content

Commit ae166fd

Browse files
lunnydelvh
andauthored
Apply suggestions from code review
Co-authored-by: delvh <[email protected]>
1 parent 1f62ea3 commit ae166fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/setting/config_provider.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,10 @@ func LogStartupProblem(skip int, level log.Level, format string, args ...any) {
324324
StartupProblems = append(StartupProblems, msg)
325325
}
326326

327+
// deprecatedSetting creates a warning about a setting that will be removed in the near future
327328
func deprecatedSetting(rootCfg ConfigProvider, oldSection, oldKey, newSection, newKey, version string) {
328329
if rootCfg.Section(oldSection).HasKey(oldKey) {
329-
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)
330+
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)
330331
}
331332
}
332333

0 commit comments

Comments
 (0)