diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2023-07-17 10:58:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-17 10:58:47 +0200 |
commit | 81a8120bc3e023b3729473adf87f399ec70e8cde (patch) | |
tree | f814458a20adf585827570a860340f4ce084f4fb /modules/setting | |
parent | d9763d605d5fef058d88cd8b894f99cb9cc06c1c (diff) | |
download | gitea-81a8120bc3e023b3729473adf87f399ec70e8cde.tar.gz gitea-81a8120bc3e023b3729473adf87f399ec70e8cde.zip |
Add shutting down notice (#25920)
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.
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/config_provider.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/config_provider.go b/modules/setting/config_provider.go index 94dd989850..86712792a7 100644 --- a/modules/setting/config_provider.go +++ b/modules/setting/config_provider.go @@ -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) } } |