Clean up
This commit is contained in:
parent
41027807eb
commit
fb317f2a36
|
|
@ -902,7 +902,7 @@ class PHPMailer
|
|||
}
|
||||
//Is this a PSR-3 logger?
|
||||
if ($this->Debugoutput instanceof \Psr\Log\LoggerInterface) {
|
||||
$this->Debugoutput->debug($str);
|
||||
$this->Debugoutput->debug(rtrim($str, "\r\n"));
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -280,9 +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 = rtrim($str, "\n\r");
|
||||
$this->Debugoutput->debug($str);
|
||||
//Remove trailing line breaks potentially added by calls to SMTP::client_send()
|
||||
$this->Debugoutput->debug(rtrim($str, "\r\n"));
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue