summaryrefslogtreecommitdiffstats
path: root/app/diagnostics.go
diff options
context:
space:
mode:
authorJason Blais <jason@spinpunch.com>2018-04-04 08:14:23 -0400
committerJoram Wilander <jwawilander@gmail.com>2018-04-04 08:14:23 -0400
commit7986eeea263703256fe81b93035472722b15e4ff (patch)
tree42ceb765e2eb31295e0062437c31970055d2c406 /app/diagnostics.go
parent80925f7cfd2fe4fe98418119c70e5e36c738f41a (diff)
downloadchat-7986eeea263703256fe81b93035472722b15e4ff.tar.gz
chat-7986eeea263703256fe81b93035472722b15e4ff.tar.bz2
chat-7986eeea263703256fe81b93035472722b15e4ff.zip
Add missing timezone setting to app/diagnostics.go (#8572)
* Add missing timezone setting to app/diagnostics.go * Update diagnostics.go * Added TimezoneSettings.SupportedTimezonesPath to diagnostics
Diffstat (limited to 'app/diagnostics.go')
-rw-r--r--app/diagnostics.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/diagnostics.go b/app/diagnostics.go
index 1649bf6ee..6e9adbf3c 100644
--- a/app/diagnostics.go
+++ b/app/diagnostics.go
@@ -44,6 +44,8 @@ const (
TRACK_CONFIG_PLUGIN = "config_plugin"
TRACK_CONFIG_DATA_RETENTION = "config_data_retention"
TRACK_CONFIG_MESSAGE_EXPORT = "config_message_export"
+ TRACK_CONFIG_DISPLAY = "config_display"
+ TRACK_CONFIG_TIMEZONE = "config_timezone"
TRACK_ACTIVITY = "activity"
TRACK_LICENSE = "license"
@@ -514,6 +516,14 @@ func (a *App) trackConfig() {
"is_default_global_relay_smtp_password": isDefault(*cfg.MessageExportSettings.GlobalRelaySettings.SmtpPassword, ""),
"is_default_global_relay_email_address": isDefault(*cfg.MessageExportSettings.GlobalRelaySettings.EmailAddress, ""),
})
+
+ a.SendDiagnostic(TRACK_CONFIG_DISPLAY, map[string]interface{}{
+ "experimental_timezone": *cfg.DisplaySettings.ExperimentalTimezone,
+ })
+
+ a.SendDiagnostic(TRACK_CONFIG_TIMEZONE, map[string]interface{}{
+ "isdefault_supported_timezones_path": isDefault(*cfg.TimezoneSettings.SupportedTimezonesPath, model.TIMEZONE_SETTINGS_DEFAULT_SUPPORTED_TIMEZONES_PATH),
+ })
}
func (a *App) trackLicense() {