summaryrefslogtreecommitdiffstats
path: root/modules/setting/log.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/setting/log.go')
-rw-r--r--modules/setting/log.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/modules/setting/log.go b/modules/setting/log.go
index 35bf021ac2..daa449a5ca 100644
--- a/modules/setting/log.go
+++ b/modules/setting/log.go
@@ -254,17 +254,6 @@ func generateNamedLogger(key string, options defaultLogOptions) *LogDescription
return &description
}
-func newMacaronLogService() {
- options := newDefaultLogOptions()
- options.filename = filepath.Join(LogRootPath, "macaron.log")
- options.bufferLength = Cfg.Section("log").Key("BUFFER_LEN").MustInt64(10000)
-
- Cfg.Section("log").Key("MACARON").MustString("file")
- if RedirectMacaronLog {
- generateNamedLogger("macaron", options)
- }
-}
-
func newAccessLogService() {
EnableAccessLog = Cfg.Section("log").Key("ENABLE_ACCESS_LOG").MustBool(false)
AccessLogTemplate = Cfg.Section("log").Key("ACCESS_LOG_TEMPLATE").MustString(
@@ -360,7 +349,6 @@ func RestartLogsWithPIDSuffix() {
// NewLogServices creates all the log services
func NewLogServices(disableConsole bool) {
newLogService()
- newMacaronLogService()
newRouterLogService()
newAccessLogService()
NewXORMLogService(disableConsole)