Skip to content

Latest commit

 

History

History
17 lines (17 loc) · 1.77 KB

2022-12-27-hide-recovery-url-in-log.md

File metadata and controls

17 lines (17 loc) · 1.77 KB
title issue
Hide recovery url in log
NEXT-24679

Core

  • Added a new variable %shopware.logger.exclude_events% in shopware.yaml
  • Added new log handler class \\Shopware\Core\Framework\Log\Monolog\ExcludeFlowEventHandler to exclude recovery password events and theirs according mail events from being logged if it's included in %shopware.logger.exclude_events% list
  • Changed method \Shopware\Core\Content\Flow\Dispatching\Action\handleFlow to add flow's eventName into the templateData variable
  • Changed class \Shopware\Core\Content\MailTemplate\Service\Event\MailErrorEvent to add the private property eventName in the constructor parameter
  • Changed class \Shopware\Core\Content\MailTemplate\Service\Event\MailBeforeSentEvent to add the private property eventName in the constructor parameter
  • Changed class \Shopware\Core\Content\MailTemplate\Service\Event\MailSentEvent to add the private property eventName in the constructor parameter
  • Changed method \Shopware\Core\Content\MailTemplate\Service\Event\MailBeforeValidateEvent::getLogData to add the eventName in log data
  • Changed method \Shopware\Core\Content\MailTemplate\Service\Event\MailErrorEvent::getLogData to add the eventName in log data
  • Changed method \Shopware\Core\Content\MailTemplate\Service\Event\MailBeforeSentEvent::getLogData to add the eventName in log data
  • Changed method \Shopware\Core\Content\MailTemplate\Service\Event\MailSentEvent::getLogData to add the eventName in log data
  • Added a new migration in \Shopware\Core\Migration\V6_4\Migration1672164687FixTypoInUserRecoveryPasswordResetMail to fix a typo in user recovery request mail template
  • Changed Shopware\Core\Content\Mail\Service\MailService to inject logger into the service to log errors when they're thrown