From 94168dc5e651142803457536d99e44d6228159fe Mon Sep 17 00:00:00 2001 From: Yury Pikhtarev Date: Thu, 10 Jul 2025 00:42:23 +0200 Subject: [PATCH] Update logging and mail configurations; add export-ignore for GitHub files - Modified logging.php to adjust the handler_with configuration and reposition the formatter setting for clarity. - Updated mail.php to include a 'retry_after' setting for both SMTP and roundrobin mail configurations, enhancing mail delivery reliability. - Added export-ignore for the .github directory in .gitattributes to exclude it from package exports. --- .gitattributes | 1 + config/logging.php | 4 ++-- config/mail.php | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index 9f35cf46a..df6b6985a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -6,6 +6,7 @@ *.md diff=markdown *.php diff=php +/.github export-ignore CHANGELOG.md export-ignore LICENSE export-ignore README.md export-ignore diff --git a/config/logging.php b/config/logging.php index 53b493f12..9e998a496 100644 --- a/config/logging.php +++ b/config/logging.php @@ -98,10 +98,10 @@ return [ 'driver' => 'monolog', 'level' => env('LOG_LEVEL', 'debug'), 'handler' => StreamHandler::class, - 'formatter' => env('LOG_STDERR_FORMATTER'), - 'with' => [ + 'handler_with' => [ 'stream' => 'php://stderr', ], + 'formatter' => env('LOG_STDERR_FORMATTER'), 'processors' => [PsrLogMessageProcessor::class], ], diff --git a/config/mail.php b/config/mail.php index 692b2a05f..522b284b8 100644 --- a/config/mail.php +++ b/config/mail.php @@ -85,6 +85,7 @@ return [ 'smtp', 'log', ], + 'retry_after' => 60, ], 'roundrobin' => [ @@ -93,6 +94,7 @@ return [ 'ses', 'postmark', ], + 'retry_after' => 60, ], ],