summaryrefslogtreecommitdiffstats
path: root/model/config.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2018-04-27 14:12:01 -0700
committerChristopher Speller <crspeller@gmail.com>2018-04-27 14:12:01 -0700
commiteb9ff34fcfa51cd8205841a02f3d3d61ec5be8fa (patch)
treeed01fd9488bd86f6c2daf0b299dff5beb43973db /model/config.go
parent2386acb3ddabd8827e21b1862c338a8b13a25de6 (diff)
parent2e6b3da1d3466db379fef0d61a23e2878d17ee9d (diff)
downloadchat-eb9ff34fcfa51cd8205841a02f3d3d61ec5be8fa.tar.gz
chat-eb9ff34fcfa51cd8205841a02f3d3d61ec5be8fa.tar.bz2
chat-eb9ff34fcfa51cd8205841a02f3d3d61ec5be8fa.zip
Merge branch 'master' into advanced-permissions-phase-2
Diffstat (limited to 'model/config.go')
-rw-r--r--model/config.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/model/config.go b/model/config.go
index fb43dea42..5074b7637 100644
--- a/model/config.go
+++ b/model/config.go
@@ -585,9 +585,10 @@ func (s *SqlSettings) SetDefaults() {
type LogSettings struct {
EnableConsole bool
ConsoleLevel string
+ ConsoleJson *bool
EnableFile bool
FileLevel string
- FileFormat string
+ FileJson *bool
FileLocation string
EnableWebhookDebugging bool
EnableDiagnostics *bool
@@ -597,6 +598,14 @@ func (s *LogSettings) SetDefaults() {
if s.EnableDiagnostics == nil {
s.EnableDiagnostics = NewBool(true)
}
+
+ if s.ConsoleJson == nil {
+ s.ConsoleJson = NewBool(true)
+ }
+
+ if s.FileJson == nil {
+ s.FileJson = NewBool(true)
+ }
}
type PasswordSettings struct {