mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-30 13:19:11 +02:00
Adding defaults for unhandled event priorities in log formatters.
Unhandled types wouldn't show up in the error format message, and a notice "undefined $errtype" is displayed on these cases.
This commit is contained in:
parent
a101d4edb3
commit
af01d7f024
@ -23,6 +23,9 @@ class SS_LogErrorEmailFormatter implements Zend_Log_Formatter_Interface {
|
||||
$errorType = 'Notice';
|
||||
$colour = 'grey';
|
||||
break;
|
||||
default:
|
||||
$errorType = $event['priorityName'];
|
||||
$colour = 'grey';
|
||||
}
|
||||
|
||||
if(!is_array($event['message'])) {
|
||||
|
@ -26,6 +26,8 @@ class SS_LogErrorFileFormatter implements Zend_Log_Formatter_Interface {
|
||||
case 'NOTICE':
|
||||
$errtype = 'Notice';
|
||||
break;
|
||||
default:
|
||||
$errtype = $event['priorityName'];
|
||||
}
|
||||
|
||||
$urlSuffix = '';
|
||||
|
Loading…
Reference in New Issue
Block a user