projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5720fd5
)
CRM-13283 - lowercase minimum_report_severity strings
author
Jon goldberg
<jon@palantetech.coop>
Mon, 27 Apr 2015 22:40:09 +0000
(16:40 -0600)
committer
Jon goldberg
<jon@palantetech.coop>
Tue, 21 Jul 2015 20:37:37 +0000
(16:37 -0400)
CRM/Utils/Check.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/Check.php
b/CRM/Utils/Check.php
index f1ed405385f4fdf26bc74c1ba5399b4c84aeb1bf..0d33f20782675127013721e8d62ca1efebcb6dfe 100644
(file)
--- a/
CRM/Utils/Check.php
+++ b/
CRM/Utils/Check.php
@@
-131,6
+131,11
@@
class CRM_Utils_Check {
* @return bool
*/
public static function severityMap($severity, $reverse = FALSE) {
+ // Lowercase string-based severities
+ if (!$reverse) {
+ $severity = strtolower($severity);
+ }
+
// See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md
$levels = array(
\Psr\Log\LogLevel::EMERGENCY => 7,