Skip to content

Commit

Permalink
[~TASK] fixed a typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
datenbrille committed Jan 25, 2015
1 parent 36baaf1 commit 18f5c79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ firegento community.

See the [**Usage**](#usage) Chapter below to see how to use it.

Pleas be aware of the following restrictions:
Please be aware of the following restrictions:

* The ProxiBlue NewRelic extension use the same logic to log to NewRelic and will block
FireGento Logger extension.
Expand Down
5 changes: 4 additions & 1 deletion src/app/code/community/FireGento/Logger/Model/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@ protected function _write($event)
*/
public function shutdown()
{
$cacheSize = count($this->_loggerCache);
foreach ($this->_writers as $writer) {
//only implode if queue is enabled and cache has entries
if ($this->_useQueue && count($this->_loggerCache) > 0) {
if ($this->_useQueue && $cacheSize > 0) {
$writer->write($this->implodeEvents($this->_loggerCache));
}
$writer->shutdown();
Expand Down Expand Up @@ -157,6 +158,8 @@ public function implodeEvents($events)
* Override this method since Mage::log doesn't let us set a formatter any other way.
*
* @param Zend_Log_Formatter_Interface $formatter Formatter
*
* @return void
*/
public function setFormatter(Zend_Log_Formatter_Interface $formatter)
{
Expand Down

0 comments on commit 18f5c79

Please sign in to comment.