summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas <tb@woodcrest.local>2013-10-21 11:52:38 (GMT)
committerThomas <tb@woodcrest.local>2013-10-21 11:52:38 (GMT)
commitfecd314fe86e48e6bf6384dd830fefccc0b53b84 (patch)
treeb459e8cfb2a0d7ae12d25c0888522bb8ce1460d3
parentdc65d4b9ca42b10a924fa1b62942301299497548 (diff)
downloadiRony-fecd314fe86e48e6bf6384dd830fefccc0b53b84.tar.gz
Disable console output by default
-rw-r--r--config/dav.inc.php.sample4
-rw-r--r--public_html/index.php7
2 files changed, 10 insertions, 1 deletions
diff --git a/config/dav.inc.php.sample b/config/dav.inc.php.sample
index ebba468..d8dd7fe 100644
--- a/config/dav.inc.php.sample
+++ b/config/dav.inc.php.sample
@@ -39,3 +39,7 @@ $rcmail_config['kolabdav_auth_cache'] = 'apc';
// lifetime of the Auth cache, possible units: s, m, h, d, w
$rcmail_config['kolabdav_auth_cache_ttl'] = '1h';
+
+// enable debug console showing the internal function calls triggered
+// by http requests. This will write log to /var/log/iRony/console
+$rcmail_config['kolab_dav_console'] = false;
diff --git a/public_html/index.php b/public_html/index.php
index f27a17c..f4ebc77 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -71,7 +71,12 @@ $rcube->plugins->init($rcube);
$rcube->plugins->load_plugins($plugins, $required);
// convenience function, you know it well :-)
-function console() { call_user_func_array(array('rcube', 'console'), func_get_args()); }
+function console()
+{
+ global $rcube;
+ if ($rcube->config->get('kolab_dav_console', false))
+ call_user_func_array(array('rcube', 'console'), func_get_args());
+}
// Make sure this setting is turned on and reflects the root url of the *DAV server.