mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-07-15 05:01:41 +08:00
* Fix for #828 Add build tags to ldflags and print in version output Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com> * Reworked formatBuiltWith function Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com> * Add tags to version information in admin panel Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com> * Added new variable for use on admin page. Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com> * Fixed incorrect indentation
This commit is contained in:
@ -59,6 +59,7 @@ const (
|
||||
var (
|
||||
// AppVer settings
|
||||
AppVer string
|
||||
AppBuiltWith string
|
||||
AppName string
|
||||
AppURL string
|
||||
AppSubURL string
|
||||
@ -939,7 +940,7 @@ var logLevels = map[string]string{
|
||||
}
|
||||
|
||||
func newLogService() {
|
||||
log.Info("Gitea v%s", AppVer)
|
||||
log.Info("Gitea v%s%s", AppVer, AppBuiltWith)
|
||||
|
||||
LogModes = strings.Split(Cfg.Section("log").Key("MODE").MustString("console"), ",")
|
||||
LogConfigs = make([]string, len(LogModes))
|
||||
|
Reference in New Issue
Block a user