summaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/system.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/api/system.js')
-rw-r--r--server/sonar-web/src/main/js/api/system.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/api/system.js b/server/sonar-web/src/main/js/api/system.js
new file mode 100644
index 00000000000..59ef364d9ee
--- /dev/null
+++ b/server/sonar-web/src/main/js/api/system.js
@@ -0,0 +1,6 @@
+import $ from 'jquery';
+
+export function setLogLevel (level) {
+ let url = baseUrl + '/api/system/change_log_level';
+ return $.post(url, { level });
+}