Skip to content

Commit

Permalink
Rename Slim\Log log method to avoid PHP error
Browse files Browse the repository at this point in the history
Fixes #419
  • Loading branch information
= committed Sep 29, 2012
1 parent 4a6f8f8 commit e67d30a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Slim/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function isEnabled()
*/
public function debug($object)
{
return $this->log($object, self::DEBUG);
return $this->write($object, self::DEBUG);
}

/**
Expand All @@ -187,7 +187,7 @@ public function debug($object)
*/
public function info($object)
{
return $this->log($object, self::INFO);
return $this->write($object, self::INFO);
}

/**
Expand All @@ -197,7 +197,7 @@ public function info($object)
*/
public function warn($object)
{
return $this->log($object, self::WARN);
return $this->write($object, self::WARN);
}

/**
Expand All @@ -207,7 +207,7 @@ public function warn($object)
*/
public function error($object)
{
return $this->log($object, self::ERROR);
return $this->write($object, self::ERROR);
}

/**
Expand All @@ -217,7 +217,7 @@ public function error($object)
*/
public function fatal($object)
{
return $this->log($object, self::FATAL);
return $this->write($object, self::FATAL);
}

/**
Expand All @@ -226,7 +226,7 @@ public function fatal($object)
* @param int The message level
* @return int|false
*/
protected function log($object, $level)
protected function write($object, $level)
{
if ($this->enabled && $this->writer && $level <= $this->level) {
return $this->writer->write($object, $level);
Expand Down

0 comments on commit e67d30a

Please sign in to comment.