diff --git a/program/lib/Roundcube/rcube_cache.php b/program/lib/Roundcube/rcube_cache.php index 59e190855..c37f652f5 100644 --- a/program/lib/Roundcube/rcube_cache.php +++ b/program/lib/Roundcube/rcube_cache.php @@ -666,7 +666,7 @@ class rcube_cache */ private function debug($type, $key, $data = null, $result = null) { - $line = strtoupper($type) . ' ' . $key; + $line = '[' . (++$this->debug_count) . '] ' . strtoupper($type) . ' ' . $key; if ($data !== null) { $line .= ' ' . ($this->packed ? $data : serialize($data)); diff --git a/program/lib/Roundcube/rcube_cache_shared.php b/program/lib/Roundcube/rcube_cache_shared.php index e15689598..c95aedd00 100644 --- a/program/lib/Roundcube/rcube_cache_shared.php +++ b/program/lib/Roundcube/rcube_cache_shared.php @@ -655,7 +655,7 @@ class rcube_cache_shared */ private function debug($type, $key, $data = null, $result = null) { - $line = strtoupper($type) . ' ' . $key; + $line = '[' . (++$this->debug_count) . '] ' . strtoupper($type) . ' ' . $key; if ($data !== null) { $line .= ' ' . ($this->packed ? $data : serialize($data));