Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.

Commit

Permalink
Add the date time to the output
Browse files Browse the repository at this point in the history
Useful when you log the swiftmailer spool sender.
  • Loading branch information
paulchubatyy committed Aug 25, 2014
1 parent bff639d commit 558a802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Command/SendEmailCommand.php
Expand Up @@ -68,7 +68,7 @@ private function processMailer($name, $input, $output)
throw new \InvalidArgumentException(sprintf('The mailer "%s" does not exist.', $name));
}

$output->write(sprintf('Processing <info>%s</info> mailer... ', $name));
$output->write(sprintf('<info>[%s]</info> Processing <info>%s</info> mailer... ', date('Y-m-d H:i:s'), $name));
if ($this->getContainer()->getParameter(sprintf('swiftmailer.mailer.%s.spool.enabled', $name))) {
$mailer = $this->getContainer()->get(sprintf('swiftmailer.mailer.%s', $name));
$transport = $mailer->getTransport();
Expand Down

0 comments on commit 558a802

Please sign in to comment.