if(!empty($errors)){
DB_DataObject::factory('Events')->writeEventLogExtra($errors);
}
- if (!preg_match('/^(ERROR|NOTICE)/', $type )) {
+ // various codes that are acceptable.
+ //
+ if (!preg_match('/^(ERROR|NOTICE|LOG)/', $type )) {
$type = 'ERROR-' . $type;
}