aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-03 12:16:43 -0500
committerUnknwon <u@gogs.io>2015-11-03 12:16:43 -0500
commita374751eb84c038f22b300bb0c6e5c4586cd0909 (patch)
treea429896e7f9a949ff10d2842a06f92f68e0a6d8a /modules/setting
parent0af035c37e8b561662c93b163b3294b91be6ffac (diff)
downloadgitea-a374751eb84c038f22b300bb0c6e5c4586cd0909.tar.gz
gitea-a374751eb84c038f22b300bb0c6e5c4586cd0909.zip
add Makefile
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/setting.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index a3527b6b89..65c5d0fb8c 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -42,6 +42,10 @@ const (
)
var (
+ // Build information.
+ BuildTime string
+ BuildGitHash string
+
// App settings.
AppVer string
AppName string
@@ -471,6 +475,11 @@ var logLevels = map[string]string{
func newLogService() {
log.Info("%s %s", AppName, AppVer)
+ if len(BuildTime) > 0 {
+ log.Info("Build Time: %s", BuildTime)
+ log.Info("Build Git Hash: %s", BuildGitHash)
+ }
+
// Get and check log mode.
LogModes = strings.Split(Cfg.Section("log").Key("MODE").MustString("console"), ",")
LogConfigs = make([]string, len(LogModes))