summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/admin_console/log_settings.jsx21
-rw-r--r--webapp/i18n/en.json2
2 files changed, 22 insertions, 1 deletions
diff --git a/webapp/components/admin_console/log_settings.jsx b/webapp/components/admin_console/log_settings.jsx
index 0a69cbc16..238040b71 100644
--- a/webapp/components/admin_console/log_settings.jsx
+++ b/webapp/components/admin_console/log_settings.jsx
@@ -26,7 +26,8 @@ export default class LogSettings extends AdminSettings {
enableFile: props.config.LogSettings.EnableFile,
fileLevel: props.config.LogSettings.FileLevel,
fileLocation: props.config.LogSettings.FileLocation,
- fileFormat: props.config.LogSettings.FileFormat
+ fileFormat: props.config.LogSettings.FileFormat,
+ enableWebhookDebugging: props.config.LogSettings.EnableWebhookDebugging
});
}
@@ -37,6 +38,7 @@ export default class LogSettings extends AdminSettings {
config.LogSettings.FileLevel = this.state.fileLevel;
config.LogSettings.FileLocation = this.state.fileLocation;
config.LogSettings.FileFormat = this.state.fileFormat;
+ config.LogSettings.EnableWebhookDebugging = this.state.enableWebhookDebugging;
return config;
}
@@ -166,6 +168,23 @@ export default class LogSettings extends AdminSettings {
onChange={this.handleChange}
disabled={!this.state.enableFile}
/>
+ <BooleanSetting
+ id='enableWebhookDebugging'
+ label={
+ <FormattedMessage
+ id='admin.log.enableWebhookDebugging'
+ defaultMessage='Enable Webhook Debugging:'
+ />
+ }
+ helpText={
+ <FormattedMessage
+ id='admin.log.enableWebhookDebuggingDescription'
+ defaultMessage='You can set this to false to disable the debug logging of all incoming webhook request bodies.'
+ />
+ }
+ value={this.state.enableWebhookDebugging}
+ onChange={this.handleChange}
+ />
</SettingsGroup>
);
}
diff --git a/webapp/i18n/en.json b/webapp/i18n/en.json
index 29269adeb..1e0788ebe 100644
--- a/webapp/i18n/en.json
+++ b/webapp/i18n/en.json
@@ -326,6 +326,8 @@
"admin.log.logSettings": "Log Settings",
"admin.logs.reload": "Reload",
"admin.logs.title": "Server Logs",
+ "admin.log.enableWebhookDebugging": "Enable Webhook Debugging:",
+ "admin.log.enableWebhookDebuggingDescription": "You can set this to false to disable the debug logging of all incoming webhook request bodies.",
"admin.nav.help": "Help",
"admin.nav.logout": "Logout",
"admin.nav.report": "Report a Problem",