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

Этот коммит содержится в:
Eli Yukelzon
2020-05-21 16:13:37 +03:00
коммит произвёл GitHub
родитель 43e606173b
Коммит 008961ba2f
33 изменённых файлов: 4639 добавлений и 6 удалений

Просмотреть файл

@@ -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)
}