From 4dc19b8f67208f0f43091ddae722b95fb1d33fba Mon Sep 17 00:00:00 2001 From: AnrDaemon Date: Thu, 7 Aug 2014 03:08:35 +0400 Subject: [PATCH] Add indent for multiline server replies Add indent for multiline server replies when printing debug log to console. --- class.smtp.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/class.smtp.php b/class.smtp.php index 9ffdac4ee..cebcf456d 100644 --- a/class.smtp.php +++ b/class.smtp.php @@ -167,7 +167,9 @@ protected function edebug($str) break; case 'echo': default: - echo gmdate('Y-m-d H:i:s')."\t".trim($str)."\n"; + echo gmdate('Y-m-d H:i:s') . "\t" . str_replace( + "\r\n", "\r\n \t ", trim($str) + )."\n"; } }