From: Michael M Slusarz Date: Tue, 20 Apr 2010 08:14:45 +0000 (-0600) Subject: A bit easier to read the imap log with this output X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9ac577799507b4affcf48d7efdd3acd802ea8e5f;p=horde.git A bit easier to read the imap log with this output --- diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php b/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php index c530e496c..32a8c97b9 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php @@ -3473,7 +3473,7 @@ class Horde_Imap_Client_Socket extends Horde_Imap_Client_Base } if ($this->_debug) { - fwrite($this->_debug, 'C (' . microtime(true) . '): ' . (empty($options['debug']) ? $query : $options['debug']) . "\n"); + fwrite($this->_debug, '(' . microtime(true) . ') C: ' . (empty($options['debug']) ? $query : $options['debug']) . "\n"); } fwrite($this->_stream, $query . "\r\n"); @@ -3685,7 +3685,7 @@ class Horde_Imap_Client_Socket extends Horde_Imap_Client_Base rewind($data); } - fwrite($this->_debug, 'S (' . microtime(true) . '): ' . ($binary ? '[BINARY DATA - ' . $len . ' bytes]' : rtrim($stream ? stream_get_contents($data): $data)) . "\n"); + fwrite($this->_debug, '(' . microtime(true) . ') S: ' . ($binary ? '[BINARY DATA - ' . $len . ' bytes]' : rtrim($stream ? stream_get_contents($data): $data)) . "\n"); } return is_null($len) ? rtrim($data) : $data;