File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -22,16 +22,18 @@ class MailerListener implements ActionListener
2222 /**
2323 * @param int $errorLogLevel
2424 * @param int $smtpDebugLevel
25+ * @see PHPMailer\SMTP
2526 */
2627 public function __construct (
2728 int $ errorLogLevel = LogLevel::ERROR ,
28- int $ smtpDebugLevel = PHPMailer \SMTP ::DEBUG_SERVER ,
29+ int $ smtpDebugLevel = 2 , // PHPMailer\SMTP::DEBUG_SERVER - hardcoded to avoid race conditions
2930 ) {
3031
3132 $ this ->errorLogLevel = LogLevel::normalizeLevel ($ errorLogLevel ) ?? LogLevel::ERROR ;
33+
3234 $ this ->smtpDebugLevel = min (
33- max (PHPMailer \ SMTP :: DEBUG_OFF , $ smtpDebugLevel ),
34- PHPMailer \SMTP ::DEBUG_LOWLEVEL
35+ max (0 , $ smtpDebugLevel ), // 0 = PHPMailer\SMTP::DEBUG_OFF
36+ 4 // 4 = PHPMailer\SMTP::DEBUG_LOWLEVEL
3537 );
3638 }
3739
You can’t perform that action at this time.
0 commit comments