Skip to content

Commit

Permalink
remove debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaloebiz committed Apr 26, 2017
1 parent be84cd3 commit 3ed042b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions Controller/Adminhtml/Ecommerce/DeleteStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,7 @@ public function execute()
$resultJson = $this->resultJsonFactory->create();
try {
$this->helper->deleteStore($mailchimpStore);
$this->helper->log('before deleteConfig');
$this->helper->log(\Ebizmarts\MailChimp\Helper\Data::XML_MAILCHIMP_STORE);
$this->helper->log($scope);
$this->helper->log($storeId);
$this->_config->deleteConfig(\Ebizmarts\MailChimp\Helper\Data::XML_MAILCHIMP_STORE, $scope, $storeId);
$this->helper->log('after deleteConfig');
} catch(ValidatorException $e) {
$valid = 0;
$message = $e->getMessage();
Expand Down
1 change: 0 additions & 1 deletion Controller/Adminhtml/Stores/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public function execute()
{
$resultRedirect = $this->resultRedirectFactory->create();
$storeId = (int) $this->getRequest()->getParam('id');
$this->_helper->log("store [$storeId]");
if ($storeId)
{
$storeModel = $this->_mailchimpStoresFactory->create();
Expand Down
3 changes: 0 additions & 3 deletions Controller/Adminhtml/Stores/Save.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ public function execute()
$storeModel->getResource()->load($storeModel,$storeId);
}
try {
$this->_helper->log($formData);
$formData['storeid'] = $this->_updateMailchimp($formData);
$formData['platform'] = \Ebizmarts\MailChimp\Helper\Data::PLATFORM;
$storeModel->setData($formData);
Expand Down Expand Up @@ -89,7 +88,6 @@ protected function _updateMailchimp($formData)
} else {
$date = $this->_helper->getDateMicrotime();
$mailchimpStoreId = md5($name. '_' . $date);
$this->_helper->log("add new store with id $mailchimpStoreId");
$ret =$api->ecommerce->stores->add(
$mailchimpStoreId,
$formData['list_id'],
Expand All @@ -104,7 +102,6 @@ protected function _updateMailchimp($formData)
$phone,
$address
);
$this->_helper->log($ret);
$formData['storeid'] = $mailchimpStoreId;
}
return $formData['storeid'];
Expand Down
1 change: 0 additions & 1 deletion Model/Config/Source/MonkeyStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public function __construct(
\Magento\Store\Model\StoreManagerInterface $storeManager
)
{
$helper->log($helper->getApiKey($storeManager->getStore()->getId()));
if ($helper->getApiKey($storeManager->getStore()->getId())) {
try {
$this->options = $helper->getApi()->ecommerce->stores->get(null,null,null,\Ebizmarts\MailChimp\Helper\Data::MAXSTORES);
Expand Down

0 comments on commit 3ed042b

Please sign in to comment.