projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed8bf0c
)
report the bad log level in the exception
author
Chuck Hagenbuch
<chuck@horde.org>
Wed, 3 Jun 2009 15:24:39 +0000
(11:24 -0400)
committer
Chuck Hagenbuch
<chuck@horde.org>
Wed, 3 Jun 2009 15:24:39 +0000
(11:24 -0400)
framework/Log/lib/Horde/Log/Logger.php
patch
|
blob
|
history
diff --git
a/framework/Log/lib/Horde/Log/Logger.php
b/framework/Log/lib/Horde/Log/Logger.php
index
5a0617a
..
8adcc65
100644
(file)
--- a/
framework/Log/lib/Horde/Log/Logger.php
+++ b/
framework/Log/lib/Horde/Log/Logger.php
@@
-75,11
+75,11
@@
class Horde_Log_Logger
*/
public function __call($method, $params)
{
- $level = strtoupper($method);
- if (($level = array_search($level, $this->_levels)) !== false) {
+ $level
Name
= strtoupper($method);
+ if (($level = array_search($level
Name
, $this->_levels)) !== false) {
$this->log(array_shift($params), $level);
} else {
- throw new Horde_Log_Exception('Bad log level
'
);
+ throw new Horde_Log_Exception('Bad log level
' . $levelName
);
}
}