mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
01_Error_Handling: % wrapped in quotes
Ensures % wrapped in quotes for Silverstripe 4.7 support
This commit is contained in:
parent
bf6a52b9c0
commit
37a5c9af15
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user