]> source.dussan.org Git - gitea.git/commitdiff
Add shutting down notice (#25920)
authorKN4CK3R <admin@oldschoolhack.me>
Mon, 17 Jul 2023 08:58:47 +0000 (10:58 +0200)
committerGitHub <noreply@github.com>
Mon, 17 Jul 2023 08:58:47 +0000 (10:58 +0200)
Got the same problem as #25915 when updating an instance. The
`log.Fatal` should have been marked as breaking in #23911.

This PR adds a notice that the system is shutting down because of the
deprecated setting.

modules/setting/config_provider.go

index 94dd989850aea6198ee2f93145ee1262cd2926f4..86712792a745f3d09010dd4a908e59736e2d9688 100644 (file)
@@ -324,7 +324,7 @@ func deprecatedSetting(rootCfg ConfigProvider, oldSection, oldKey, newSection, n
 
 func deprecatedSettingFatal(rootCfg ConfigProvider, oldSection, oldKey, newSection, newKey, version string) {
        if rootCfg.Section(oldSection).HasKey(oldKey) {
-               log.Fatal("Deprecated fallback `[%s]` `%s` present. Use `[%s]` `%s` instead. This fallback will be/has been removed in %s", oldSection, oldKey, newSection, newKey, version)
+               log.Fatal("Deprecated fallback `[%s]` `%s` present. Use `[%s]` `%s` instead. This fallback will be/has been removed in %s. Shutting down", oldSection, oldKey, newSection, newKey, version)
        }
 }