From 32525622fbc940b39bdb85134ca1251d7e1850c2 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 8 Jan 2009 19:27:24 +0100 Subject: [PATCH] Add timestamps to log messages. --- framework/Imap_Client/lib/Horde/Imap/Client/Socket.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php b/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php index 238a908ff..749ab4bf0 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php @@ -2976,7 +2976,7 @@ class Horde_Imap_Client_Socket extends Horde_Imap_Client_Base } if ($this->_debug) { - fwrite($this->_debug, 'C: ' . (empty($options['debug']) ? $query : $options['debug']) . "\n"); + fwrite($this->_debug, 'C (' . microtime(true) . '): ' . (empty($options['debug']) ? $query : $options['debug']) . "\n"); } fwrite($this->_stream, $query . "\r\n"); @@ -3028,7 +3028,7 @@ class Horde_Imap_Client_Socket extends Horde_Imap_Client_Base } if ($this->_debug) { - fwrite($this->_debug, 'S: ' . $read . "\n"); + fwrite($this->_debug, 'S (' . microtime(true) . '): ' . $read . "\n"); } $read = explode(' ', $read, 3); @@ -3117,7 +3117,7 @@ class Horde_Imap_Client_Socket extends Horde_Imap_Client_Base $debug_line = $binary ? "[BINARY DATA - $literal_len bytes]" : $line; - fwrite($this->_debug, 'S: ' . $debug_line . "\n"); + fwrite($this->_debug, 'S (' . microtime(true) . ': ' . $debug_line . "\n"); } } while (true); -- 2.11.0