Skip to content

Commit

Permalink
Tweak default config for mail body (#1572)
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh authored Mar 12, 2024
1 parent 14dfc04 commit ee23335
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions config/debugbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,7 @@
],
'mail' => [
'timeline' => false, // Add mails to the timeline
'show_body' => false,
'full_log' => false,
'show_body' => true,
],
'views' => [
'timeline' => false, // Add the views to the timeline (Experimental)
Expand Down
5 changes: 1 addition & 4 deletions src/LaravelDebugbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,7 @@ function (\Illuminate\Database\Events\ConnectionEstablished $event) {
$mailCollector->addSymfonyMessage($event->sent->getSymfonySentMessage());
});

if ($config->get('debugbar.options.mail.full_log')) {
$mailCollector->showMessageDetail();
}
if ($config->get('debugbar.options.mail.show_body')) {
if ($config->get('debugbar.options.mail.show_body') || $config->get('debugbar.options.mail.full_log')) {
$mailCollector->showMessageBody();
}

Expand Down

0 comments on commit ee23335

Please sign in to comment.