From 11d5e7c1002ec281c57b1181487e448b91e19b80 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Tue, 12 May 2015 13:50:02 -0400
Subject: [PATCH] Implemented memcache_debug also for session operations
---
program/lib/Roundcube/rcube_cache_shared.php | 15 ++-------------
1 files changed, 2 insertions(+), 13 deletions(-)
diff --git a/program/lib/Roundcube/rcube_cache_shared.php b/program/lib/Roundcube/rcube_cache_shared.php
index c95aedd..701f8d7 100644
--- a/program/lib/Roundcube/rcube_cache_shared.php
+++ b/program/lib/Roundcube/rcube_cache_shared.php
@@ -47,8 +47,6 @@
private $cache_sums = array();
private $max_packet = -1;
- const DEBUG_LINE_LENGTH = 4096;
-
/**
* Object constructor.
@@ -655,21 +653,12 @@
*/
private function debug($type, $key, $data = null, $result = null)
{
- $line = '[' . (++$this->debug_count) . '] ' . strtoupper($type) . ' ' . $key;
+ $line = strtoupper($type) . ' ' . $key;
if ($data !== null) {
$line .= ' ' . ($this->packed ? $data : serialize($data));
-
- if (($len = strlen($line)) > self::DEBUG_LINE_LENGTH) {
- $diff = $len - self::DEBUG_LINE_LENGTH;
- $line = substr($line, 0, self::DEBUG_LINE_LENGTH) . "... [truncated $diff bytes]";
- }
}
- if ($result !== null) {
- $line .= ' [' . ($result ? 'TRUE' : 'FALSE') . ']';
- }
-
- rcube::write_log($this->type, $line);
+ rcube::debug($this->type, $line, $result);
}
}
--
Gitblit v1.9.1