mirror of
https://github.com/PHPMailer/PHPMailer.git
synced 2024-09-20 01:52:15 +02:00
Remove potential ending line break when using edebug() with LoggerInterface
This commit is contained in:
parent
49b4cedfec
commit
df33c89c5b
@ -280,6 +280,8 @@ class SMTP
|
||||
}
|
||||
//Is this a PSR-3 logger?
|
||||
if ($this->Debugoutput instanceof \Psr\Log\LoggerInterface) {
|
||||
//Remove ending line breaks potentialy added by calls to SMTP::client_send()
|
||||
$str = preg_replace('/[' . static::LE .']+$/', '', $str);
|
||||
$this->Debugoutput->debug($str);
|
||||
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user