Skip to content

Commit 6e82d0b

Browse files
GiteaBotKN4CK3R
andauthored
Add shutting down notice (go-gitea#25920) (go-gitea#25922)
Backport go-gitea#25920 by @KN4CK3R Got the same problem as go-gitea#25915 when updating an instance. The `log.Fatal` should have been marked as breaking in go-gitea#23911. This PR adds a notice that the system is shutting down because of the deprecated setting. Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
1 parent 36b9a86 commit 6e82d0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/setting/config_provider.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ func deprecatedSetting(rootCfg ConfigProvider, oldSection, oldKey, newSection, n
324324

325325
func deprecatedSettingFatal(rootCfg ConfigProvider, oldSection, oldKey, newSection, newKey, version string) {
326326
if rootCfg.Section(oldSection).HasKey(oldKey) {
327-
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)
327+
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)
328328
}
329329
}
330330

0 commit comments

Comments
 (0)