MM-20951 Add sentry support to mattermost-server (#14405)

This commit is contained in:
Eli Yukelzon
2020-05-21 16:13:37 +03:00
committed by GitHub
parent 43e606173b
commit 008961ba2f
33 changed files with 4639 additions and 6 deletions

View File

@@ -1051,6 +1051,7 @@ type LogSettings struct {
FileLocation *string `restricted:"true"`
EnableWebhookDebugging *bool `restricted:"true"`
EnableDiagnostics *bool `restricted:"true"`
EnableSentry *bool `restricted:"true"`
}
func (s *LogSettings) SetDefaults() {
@@ -1082,6 +1083,10 @@ func (s *LogSettings) SetDefaults() {
s.EnableDiagnostics = NewBool(true)
}
if s.EnableSentry == nil {
s.EnableSentry = NewBool(*s.EnableDiagnostics)
}
if s.ConsoleJson == nil {
s.ConsoleJson = NewBool(true)
}