summaryrefslogtreecommitdiffstats
path: root/settings/ajax/setloglevel.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-10-16 21:08:44 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-10-16 21:11:03 +0200
commitd9372ac76606cd10e680852dde090171f04f5dee (patch)
treee8bf84832ede4225cdefd839d0da8d2f1f294d64 /settings/ajax/setloglevel.php
parent820cd0fb75bac88b4debe8f3fb28c1118b8587fa (diff)
downloadnextcloud-server-d9372ac76606cd10e680852dde090171f04f5dee.tar.gz
nextcloud-server-d9372ac76606cd10e680852dde090171f04f5dee.zip
make log level configurable
Diffstat (limited to 'settings/ajax/setloglevel.php')
-rw-r--r--settings/ajax/setloglevel.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/settings/ajax/setloglevel.php b/settings/ajax/setloglevel.php
new file mode 100644
index 00000000000..298cbd64738
--- /dev/null
+++ b/settings/ajax/setloglevel.php
@@ -0,0 +1,15 @@
+<?php
+/**
+ * Copyright (c) 2011, Robin Appelman <icewind1991@gmail.com>
+ * This file is licensed under the Affero General Public License version 3 or later.
+ * See the COPYING-README file.
+ */
+
+require_once('../../lib/base.php');
+OC_Util::checkAdminUser();
+
+OC_Config::setValue( 'loglevel', $_POST['level'] );
+
+echo 'true';
+
+?> \ No newline at end of file