Skip to content

Commit

Permalink
Fixed error level
Browse files Browse the repository at this point in the history
  • Loading branch information
stdclass committed Jan 4, 2012
1 parent ea280d1 commit 10f61c7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Monitr.php
Expand Up @@ -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"] );
}

Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 10f61c7

Please sign in to comment.