Allow inline JSON in config.json for advanced logging config (#20954)
* Allow embedded JSON in config.json for AdvancedLoggingConfig * fix escaped JSON case * Add unit test cases for escaped JSON Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
@@ -503,7 +503,7 @@ func (ts *TelemetryService) trackConfig() {
|
||||
"file_json": cfg.LogSettings.FileJson,
|
||||
"enable_webhook_debugging": cfg.LogSettings.EnableWebhookDebugging,
|
||||
"isdefault_file_location": isDefault(cfg.LogSettings.FileLocation, ""),
|
||||
"advanced_logging_config": *cfg.LogSettings.AdvancedLoggingConfig != "",
|
||||
"advanced_logging_config": len(cfg.LogSettings.AdvancedLoggingConfig) != 0,
|
||||
})
|
||||
|
||||
ts.SendTelemetry(TrackConfigAudit, map[string]any{
|
||||
@@ -513,7 +513,7 @@ func (ts *TelemetryService) trackConfig() {
|
||||
"file_max_backups": *cfg.ExperimentalAuditSettings.FileMaxBackups,
|
||||
"file_compress": *cfg.ExperimentalAuditSettings.FileCompress,
|
||||
"file_max_queue_size": *cfg.ExperimentalAuditSettings.FileMaxQueueSize,
|
||||
"advanced_logging_config": *cfg.ExperimentalAuditSettings.AdvancedLoggingConfig != "",
|
||||
"advanced_logging_config": len(cfg.ExperimentalAuditSettings.AdvancedLoggingConfig) != 0,
|
||||
})
|
||||
|
||||
ts.SendTelemetry(TrackConfigNotificationLog, map[string]any{
|
||||
@@ -524,7 +524,7 @@ func (ts *TelemetryService) trackConfig() {
|
||||
"file_level": *cfg.NotificationLogSettings.FileLevel,
|
||||
"file_json": *cfg.NotificationLogSettings.FileJson,
|
||||
"isdefault_file_location": isDefault(*cfg.NotificationLogSettings.FileLocation, ""),
|
||||
"advanced_logging_config": *cfg.NotificationLogSettings.AdvancedLoggingConfig != "",
|
||||
"advanced_logging_config": len(cfg.NotificationLogSettings.AdvancedLoggingConfig) != 0,
|
||||
})
|
||||
|
||||
ts.SendTelemetry(TrackConfigPassword, map[string]any{
|
||||
|
||||
Ссылка в новой задаче
Block a user