Permalink
Browse files

Fixed error level

  • Loading branch information...
1 parent ea280d1 commit 10f61c7e88380ae2a553073ebf14891d75fd874d @stdclass stdclass committed Jan 4, 2012
Showing with 2 additions and 5 deletions.
  1. +2 −5 Monitr.php
View
@@ -149,10 +149,7 @@ private function api( $method, $params ){
*/
public function log( $message, $error_code = E_WARNING ){
$trace = debug_backtrace();
-
- if( ! $error_code & $this->errorCode )
- return false;
-
+
return $this->logError( $message, $error_code, $trace[0]["file"], $trace[0]["line"] );
}
@@ -195,7 +192,7 @@ private function registerShutdownFunction(){
public function logError( $message, $code, $file, $line ){
- if( ! $code & $this->errorLevel )
+ if( ! ( $code & $this->errorLevel ) )
return false;
return $this->api( "log", array(

0 comments on commit 10f61c7

Please sign in to comment.