From 09f8267751c71bdb6d8ba2757a1e4ffe62ccf5c3 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Tue, 5 Sep 2017 15:24:21 -0400 Subject: PLT-7517 Added setting to enable tracing of Amazon S3 connections (#7349) * PLT-7517 Added setting to enable tracing of Amazon S3 connections * Removed unnecessary placeholders on boolean settings * Added AmazonS3Trace to diagnostics * Updated AmazonS3Trace setting name in system console * Removing extra colon --- model/config.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'model') diff --git a/model/config.go b/model/config.go index 85181edd9..311a43261 100644 --- a/model/config.go +++ b/model/config.go @@ -272,6 +272,7 @@ type FileSettings struct { AmazonS3SSL *bool AmazonS3SignV2 *bool AmazonS3SSE *bool + AmazonS3Trace *bool } type EmailSettings struct { @@ -607,6 +608,11 @@ func (o *Config) SetDefaults() { *o.FileSettings.AmazonS3SSE = false // Not Encrypted by default. } + if o.FileSettings.AmazonS3Trace == nil { + o.FileSettings.AmazonS3Trace = new(bool) + *o.FileSettings.AmazonS3Trace = false + } + if o.FileSettings.EnableFileAttachments == nil { o.FileSettings.EnableFileAttachments = new(bool) *o.FileSettings.EnableFileAttachments = true -- cgit v1.2.3-1-g7c22