summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2019-05-15 22:37:06 +0100
committerGitHub <noreply@github.com>2019-05-15 22:37:06 +0100
commit775a5a5b0f4c1a7aa7b301569fe89d7c6e751c46 (patch)
treee1977f6e20abdd44924d56f15eebdbb6be6fce72 /modules/setting
parent7dd983797c218d7ae45e67d79517e95ad3dd24b8 (diff)
downloadgitea-775a5a5b0f4c1a7aa7b301569fe89d7c6e751c46.tar.gz
gitea-775a5a5b0f4c1a7aa7b301569fe89d7c6e751c46.zip
Stop colorizing files by default (#6949)
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/log.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/setting/log.go b/modules/setting/log.go
index 43a28309d2..9f4bbf9d87 100644
--- a/modules/setting/log.go
+++ b/modules/setting/log.go
@@ -10,7 +10,6 @@ import (
"os"
"path"
"path/filepath"
- "runtime"
"strings"
"code.gitea.io/gitea/modules/log"
@@ -113,7 +112,6 @@ func generateLogConfig(sec *ini.Section, name string, defaults defaultLogOptions
panic(err.Error())
}
- logConfig["colorize"] = sec.Key("COLORIZE").MustBool(runtime.GOOS != "windows")
logConfig["filename"] = logPath
logConfig["rotate"] = sec.Key("LOG_ROTATE").MustBool(true)
logConfig["maxsize"] = 1 << uint(sec.Key("MAX_SIZE_SHIFT").MustInt(28))