summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-06-27 18:08:32 (GMT)
committerAleksander Machniak <alec@alec.pl>2013-06-27 18:08:32 (GMT)
commite7175e0413f08339294478c9656594dc86530b21 (patch)
treec5edb3eaf3e476fa85202ac1c5d6199287b0fdf2
parent9cef87e8dea14a3758bff0464e31482616568cae (diff)
downloadiRony-e7175e0413f08339294478c9656594dc86530b21.tar.gz
Add method name to the logged debug entry
-rw-r--r--public_html/index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/public_html/index.php b/public_html/index.php
index fcad3b8..8d15657 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -155,7 +155,8 @@ if ($debug) {
else if (function_exists('memory_get_usage'))
$mem = memory_get_usage();
- $log = trim($server->getRequestUri() . ($mem ? sprintf(' [%.1f MB]', $mem/1024/1024) : ''));
+ $log = $server->httpRequest->getMethod() . ': ' . $server->getRequestUri();
+ $log .= ($mem ? sprintf(' [%.1f MB]', $mem/1024/1024) : '');
if (defined('KOLAB_DAV_START')) {
rcube::print_timer(KOLAB_DAV_START, $log);
}