Skip to content

Commit ee23335

Browse files
authored
Tweak default config for mail body (#1572)
1 parent 14dfc04 commit ee23335

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

config/debugbar.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,7 @@
226226
],
227227
'mail' => [
228228
'timeline' => false, // Add mails to the timeline
229-
'show_body' => false,
230-
'full_log' => false,
229+
'show_body' => true,
231230
],
232231
'views' => [
233232
'timeline' => false, // Add the views to the timeline (Experimental)

src/LaravelDebugbar.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -433,10 +433,7 @@ function (\Illuminate\Database\Events\ConnectionEstablished $event) {
433433
$mailCollector->addSymfonyMessage($event->sent->getSymfonySentMessage());
434434
});
435435

436-
if ($config->get('debugbar.options.mail.full_log')) {
437-
$mailCollector->showMessageDetail();
438-
}
439-
if ($config->get('debugbar.options.mail.show_body')) {
436+
if ($config->get('debugbar.options.mail.show_body') || $config->get('debugbar.options.mail.full_log')) {
440437
$mailCollector->showMessageBody();
441438
}
442439

0 commit comments

Comments
 (0)