summaryrefslogtreecommitdiffstats
path: root/routers/private/manager.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/private/manager.go')
-rw-r--r--routers/private/manager.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/private/manager.go b/routers/private/manager.go
index f15da298d6..a56fe9d123 100644
--- a/routers/private/manager.go
+++ b/routers/private/manager.go
@@ -116,11 +116,11 @@ func AddLogger(ctx *context.PrivateContext) {
}
if _, ok := opts.Config["level"]; !ok {
- opts.Config["level"] = setting.LogLevel
+ opts.Config["level"] = setting.Log.Level
}
if _, ok := opts.Config["stacktraceLevel"]; !ok {
- opts.Config["stacktraceLevel"] = setting.StacktraceLogLevel
+ opts.Config["stacktraceLevel"] = setting.Log.StacktraceLogLevel
}
if opts.Mode == "file" {
@@ -135,7 +135,7 @@ func AddLogger(ctx *context.PrivateContext) {
}
}
- bufferLen := setting.Cfg.Section("log").Key("BUFFER_LEN").MustInt64(10000)
+ bufferLen := setting.Log.BufferLength
byteConfig, err := json.Marshal(opts.Config)
if err != nil {
log.Error("Failed to marshal log configuration: %v %v", opts.Config, err)