Problem/Motivation

Watchdog logs for a site show symfony_mailer messages as coming from "mailer", which may make troubleshooting confusing.

Steps to reproduce

Look at watchdog entries :)

Also: code has this:

src/Mailer.php
280:      $this->loggerFactory->get('mailer')->error('Error sending email: %message', $params);

Proposed resolution

Replace 'mailer' with 'symfony_mailer'

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

janusman created an issue. See original summary.

aaron.ferris made their first commit to this issue’s fork.

aaron.ferris’s picture

Status: Active » Needs review

Makes sense to me, I can see we are logging entries as 'symfony_mailer' elsewhere also. Raised an MR.

  /**
   * {@inheritdoc}
   */
  public function submitForm(array &$form, FormStateInterface $form_state) {
    $this->overrideManager->action($this->id, $this->action);
    $message = ($this->id == OverrideManagerInterface::ALL_OVERRIDES) ?
      $this->t('Completed %action for all overrides', $this->args) :
      $this->t('Completed %action for override %name', $this->args);
    $this->messenger()->addStatus($message);
    $this->logger('symfony_mailer')->notice($message);
    $form_state->setRedirectUrl($this->getCancelUrl());
  }

AdamPS made their first commit to this issue’s fork.

adamps’s picture

Status: Needs review » Fixed

Thanks

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.