summaryrefslogtreecommitdiff
path: root/plugins/debug_logger
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/debug_logger')
-rw-r--r--plugins/debug_logger/debug_logger.php10
-rw-r--r--plugins/debug_logger/runlog/runlog.php2
2 files changed, 6 insertions, 6 deletions
diff --git a/plugins/debug_logger/debug_logger.php b/plugins/debug_logger/debug_logger.php
index 88237d767..87a163785 100644
--- a/plugins/debug_logger/debug_logger.php
+++ b/plugins/debug_logger/debug_logger.php
@@ -12,7 +12,7 @@
* which can redirect messages to files. The resulting log files
* provide timing and tag quantity results.
*
- * Enable the plugin in config.inc.php and add your desired
+ * Enable the plugin in config/main.inc.php and add your desired
* log types and files.
*
* @version @package_version@
@@ -21,13 +21,13 @@
*
* Example:
*
- * config.inc.php:
+ * config/main.inc.php:
*
- * // $config['debug_logger'][type of logging] = name of file in log_dir
+ * // $rcmail_config['debug_logger'][type of logging] = name of file in log_dir
* // The 'master' log includes timing information
- * $config['debug_logger']['master'] = 'master';
+ * $rcmail_config['debug_logger']['master'] = 'master';
* // If you want sql messages to also go into a separate file
- * $config['debug_logger']['sql'] = 'sql';
+ * $rcmail_config['debug_logger']['sql'] = 'sql';
*
* index.php (just after $RCMAIL->plugins->init()):
*
diff --git a/plugins/debug_logger/runlog/runlog.php b/plugins/debug_logger/runlog/runlog.php
index 0c766a13c..c9f672615 100644
--- a/plugins/debug_logger/runlog/runlog.php
+++ b/plugins/debug_logger/runlog/runlog.php
@@ -194,7 +194,7 @@ class runlog {
public function print_totals(){
$totals = array();
- foreach ($this->run_log as $entry) {
+ foreach ( $this->run_log as $k => $entry ) {
if ( $entry['type'] == 'start' && $entry['ended'] == true) {
$totals[$entry['value']]['duration'] += $entry['duration'];
$totals[$entry['value']]['count'] += 1;