summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/setting/setting.go3
-rw-r--r--modules/templates/helper.go3
2 files changed, 5 insertions, 1 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index dd06691dc3..bdece17ad4 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -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))
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index b03128a0b1..1f510bda6a 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -48,6 +48,9 @@ func NewFuncMap() []template.FuncMap {
"AppVer": func() string {
return setting.AppVer
},
+ "AppBuiltWith": func() string {
+ return setting.AppBuiltWith
+ },
"AppDomain": func() string {
return setting.Domain
},