mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
MM-20951 Add sentry support to mattermost-server (#14405)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user