It doesn't change logic, it only does:
1. Rename the variable and function names
2. Use more consistent format when mentioning config section&key
3. Improve some messages
msg:=fmt.Sprintf("Deprecated config option `[%s]` `%s` present. Use `[%s]` `%s` instead. This fallback will be/has been removed in %s",oldSection,oldKey,newSection,newKey,version)
logStartupProblem(1,log.ERROR,"Deprecation: config option `[%s].%s` presents, please use `[%s].%s` instead because this fallback will be/has been removed in %s",oldSection,oldKey,newSection,newKey,version)
log.Error("%v",msg)
DeprecatedWarnings=append(DeprecatedWarnings,msg)
}
}
}
}
// deprecatedSettingDB add a hint that the configuration has been moved to database but still kept in app.ini
// deprecatedSettingDB add a hint that the configuration has been moved to database but still kept in app.ini
log.Error("Deprecated `[%s]` `%s` present which has been copied to database table sys_setting",oldSection,oldKey)
logStartupProblem(1,log.ERROR,"Deprecation: config option `[%s].%s` presents but it won't take effect because it has been moved to admin panel -> config setting",oldSection,oldKey)
// FIXME: in main branch, the signing token should be refactored (eg: one unique for LFS/OAuth2/etc ...)
// FIXME: in main branch, the signing token should be refactored (eg: one unique for LFS/OAuth2/etc ...)
log.Warn("OAuth2 is not enabled, unable to use a persistent signing secret, a new one is generated, which is not persistent between restarts and cluster nodes")
logStartupProblem(1,log.WARN,"OAuth2 is not enabled, unable to use a persistent signing secret, a new one is generated, which is not persistent between restarts and cluster nodes")
msg:=fmt.Sprintf("Configured path %q is used by %q and %q at the same time. The paths must be unique to prevent data loss.",path,targetName,name)
logStartupProblem(1,log.ERROR,"Configured path %q is used by %q and %q at the same time. The paths must be unique to prevent data loss.",path,targetName,name)