Commit 9de1cc18 authored by Derek Wright's avatar Derek Wright Committed by Jakob P
Browse files

Issue #3165981 by dww: Include more info for the logger->info() call

parent f43b164e
Loading
Loading
Loading
Loading
+1 −1
Changes for smtp.module: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -108,7 +108,7 @@ function _smtp_mailer_send(array $variables) {
  $logger = \Drupal::logger('smtp');

  // Let the people know what is going on.
  $logger->info('Sending mail to: @to', ['@to' => $to]);
  $logger->info('Sending mail to: @to (subject: %subject)', ['@to' => $to, '%subject' => $mailer->Subject]);

  // Try to send e-mail. If it fails, set watchdog entry.
  try {
+1 −1
Changes for src/Plugin/Mail/SMTPMailSystem.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -691,7 +691,7 @@ class SMTPMailSystem implements MailInterface, ContainerFactoryPluginInterface {
      'from' => $from,
    ];
    if ($this->smtpConfig->get('smtp_queue')) {
      $logger->info($this->t('Queue sending mail to: @to', ['@to' => $to]));
      $logger->info($this->t('Queue sending mail to: @to (subject: %subject)', ['@to' => $to, '%subject' => $subject]));
      smtp_send_queue($mailerArr);
    }
    else {