diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-02-21 06:18:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-20 16:18:26 -0600 |
commit | d845be661f5205b70d4fa6883e7912a5d2491218 (patch) | |
tree | 2c946a94512cdac7557d4a942acf0377efa583e4 /modules/setting/config_provider.go | |
parent | d2128b44f714fcaacdc88865e62f6f9dd8216577 (diff) | |
download | gitea-d845be661f5205b70d4fa6883e7912a5d2491218.tar.gz gitea-d845be661f5205b70d4fa6883e7912a5d2491218.zip |
handle deprecated settings (#22992)
Fix #22736
Diffstat (limited to 'modules/setting/config_provider.go')
-rw-r--r-- | modules/setting/config_provider.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/setting/config_provider.go b/modules/setting/config_provider.go index 67a4e4ded1..0244a8d06e 100644 --- a/modules/setting/config_provider.go +++ b/modules/setting/config_provider.go @@ -25,9 +25,9 @@ func mustMapSetting(rootCfg ConfigProvider, sectionName string, setting interfac } } -func deprecatedSetting(rootCfg ConfigProvider, oldSection, oldKey, newSection, newKey string) { +func deprecatedSetting(rootCfg ConfigProvider, oldSection, oldKey, newSection, newKey, version string) { if rootCfg.Section(oldSection).HasKey(oldKey) { - log.Error("Deprecated fallback `[%s]` `%s` present. Use `[%s]` `%s` instead. This fallback will be removed in v1.19.0", oldSection, oldKey, newSection, newKey) + log.Error("Deprecated fallback `[%s]` `%s` present. Use `[%s]` `%s` instead. This fallback will be/has been removed in %s", oldSection, oldKey, newSection, newKey, version) } } |