diff options
author | Unknown <joe2010xtmf@163.com> | 2014-09-16 13:34:09 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-09-16 13:34:09 -0400 |
commit | ebb4f1b78cdf7ce877eafc346be94b8e8ac3217b (patch) | |
tree | 4573ca1bd035bbcb93ad9ec46d5f94cc7585a3dc /modules | |
parent | 62f21ff3ed1b85a1d3a1eab73da354e4f6e8794a (diff) | |
download | gitea-ebb4f1b78cdf7ce877eafc346be94b8e8ac3217b.tar.gz gitea-ebb4f1b78cdf7ce877eafc346be94b8e8ac3217b.zip |
Work #475 and #458
Diffstat (limited to 'modules')
-rw-r--r-- | modules/setting/setting.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 199b4f2c27..d2c4d49cb0 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -10,6 +10,7 @@ import ( "os/exec" "path" "path/filepath" + "runtime" "strings" "time" @@ -98,12 +99,14 @@ var ( CustomPath string // Custom directory path. ProdMode bool RunUser string + IsWindows bool // I18n settings. Langs, Names []string ) func init() { + IsWindows = runtime.GOOS == "windows" log.NewLogger(0, "console", `{"level": 0}`) } |