Merge pull request #9758 from purplespider/patch-4

01_Error_Handling: % wrapped in quotes
This commit is contained in:
Robbie Averill 2020-11-06 09:29:39 -08:00 committed by GitHub
commit 743e641537
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,7 +142,7 @@ SilverStripe\Core\Injector\Injector:
- error - error
properties: properties:
ContentType: text/html ContentType: text/html
Formatter: %$SilverStripe\Logging\DetailedErrorFormatter Formatter: '%$SilverStripe\Logging\DetailedErrorFormatter'
``` ```
The first section 4 lines passes a new handler to `Logger::pushHandler()` from the named service `MailHandler`. The The first section 4 lines passes a new handler to `Logger::pushHandler()` from the named service `MailHandler`. The
@ -181,7 +181,7 @@ The handler key of the default handler is `pushDisplayErrorHandler`, so you can
SilverStripe\Core\Injector\Injector: SilverStripe\Core\Injector\Injector:
Psr\Log\LoggerInterface.errorhandler: Psr\Log\LoggerInterface.errorhandler:
calls: calls:
pushDisplayErrorHandler: %%remove%% pushDisplayErrorHandler: '%%remove%%'
``` ```
### Setting a different configuration for dev ### Setting a different configuration for dev
@ -205,8 +205,8 @@ SilverStripe\Core\Injector\Injector:
constructor: constructor:
- "notice" - "notice"
properties: properties:
Formatter: %$SilverStripe\Logging\DetailedErrorFormatter Formatter: '%$SilverStripe\Logging\DetailedErrorFormatter'
CLIFormatter: %$SilverStripe\Logging\DetailedErrorFormatter CLIFormatter: '%$SilverStripe\Logging\DetailedErrorFormatter'
--- ---
Name: live-errors Name: live-errors
Except: Except:
@ -234,7 +234,7 @@ SilverStripe\Core\Injector\Injector:
- "../silverstripe.log" - "../silverstripe.log"
- "notice" - "notice"
properties: properties:
Formatter: %$Monolog\Formatter\HtmlFormatter Formatter: '%$Monolog\Formatter\HtmlFormatter'
ContentType: text/html ContentType: text/html
# Handler for displaying errors in the browser or CLI # Handler for displaying errors in the browser or CLI
@ -243,7 +243,7 @@ SilverStripe\Core\Injector\Injector:
constructor: constructor:
- "error" - "error"
properties: properties:
Formatter: %$SilverStripe\Logging\DebugViewFriendlyErrorFormatter Formatter: '%$SilverStripe\Logging\DebugViewFriendlyErrorFormatter'
# Configuration for the "friendly" error formatter # Configuration for the "friendly" error formatter
SilverStripe\Logging\DebugViewFriendlyErrorFormatter: SilverStripe\Logging\DebugViewFriendlyErrorFormatter: