Skip to content

Commit

Permalink
Add indent for multiline server replies
Browse files Browse the repository at this point in the history
Add indent for multiline server replies when printing debug log to console.
  • Loading branch information
AnrDaemon committed Aug 6, 2014
1 parent 9a4646e commit 4dc19b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion class.smtp.php
Expand Up @@ -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";
}
}

Expand Down

0 comments on commit 4dc19b8

Please sign in to comment.