Skip to content

Commit

Permalink
Remove core/logger dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
renatocason committed Nov 27, 2017
1 parent aaa71e9 commit bc013ff
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/app/code/community/Bitbull/Satispay/Model/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ class Bitbull_Satispay_Model_Logger
*/
protected $_filename = 'Bitbull_Satispay.log';

/**
* @var Mage_Core_Model_Logger
*/
private $_logger;

/**
* Standard constructor.
*/
Expand All @@ -27,8 +22,6 @@ public function __construct($parameters)
if (is_bool($parameters)) {
$this->_force = $parameters;
}

$this->_logger = Mage::getModel('core/logger');
}

protected function _log($message, $level, $force)
Expand All @@ -37,11 +30,7 @@ protected function _log($message, $level, $force)
$force = $this->_force;
}

if($this->_logger) {
return $this->_logger->log($message, $level, $this->_filename, $force);
} else {
return Mage::log($message, $level, $this->_filename, $force);
}
return Mage::log($message, $level, $this->_filename, $force);
}

/**
Expand Down

0 comments on commit bc013ff

Please sign in to comment.