Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ public function addWriter($writer, $priority = 1, array $options = null)
$writer = $this->writerPlugin($writer, $options);
} elseif (!$writer instanceof Writer\WriterInterface) {
throw new Exception\InvalidArgumentException(sprintf(
'Writer must implement Zend\Log\Writer; received "%s"',
'Writer must implement %s\Writer\WriterInterface; received "%s"',
__NAMESPACE__,
is_object($writer) ? get_class($writer) : gettype($writer)
));
}
Expand Down
2 changes: 1 addition & 1 deletion src/Writer/AbstractWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function addFilter($filter, array $options = null)

if (!$filter instanceof Filter\FilterInterface) {
throw new Exception\InvalidArgumentException(sprintf(
'Writer must implement %s\Filter\FilterInterface; received "%s"',
'Filter must implement %s\Filter\FilterInterface; received "%s"',
__NAMESPACE__,
is_object($filter) ? get_class($filter) : gettype($filter)
));
Expand Down
2 changes: 1 addition & 1 deletion src/Writer/ChromePhp/ChromePhpBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function info($line)
*/
public function trace($line)
{
ChromePhp::error($line);
ChromePhp::log($line);
}

/**
Expand Down

0 comments on commit 239c0d0

Please sign in to comment.