Skip to content

Commit 2e94d88

Browse files
committed
Add logging tp import process
1 parent 1a0163f commit 2e94d88

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Model/Import/Aw.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ public function execute()
106106
} catch (\Magento\Framework\Exception\LocalizedException $e) {
107107
unset($category);
108108
$this->_skippedCategories[] = $data['title'];
109+
$this->_logger->addDebug('Blog Category Import [' . $data['title'] . ']: '. $e->getMessage());
109110
}
110111
}
111112

@@ -168,6 +169,7 @@ public function execute()
168169
$this->_importedPostsCount++;
169170
} catch (\Magento\Framework\Exception\LocalizedException $e) {
170171
$this->_skippedPosts[] = $data['title'];
172+
$this->_logger->addDebug('Blog Post Import [' . $data['title'] . ']: '. $e->getMessage());
171173
}
172174

173175
unset($post);

Model/Import/Wordpress.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public function execute()
6969
} catch (\Magento\Framework\Exception\LocalizedException $e) {
7070
unset($category);
7171
$this->_skippedCategories[] = $data['title'];
72+
$this->_logger->addDebug('Blog Category Import [' . $data['title'] . ']: '. $e->getMessage());
7273
}
7374
}
7475

@@ -142,6 +143,7 @@ public function execute()
142143
} catch (\Magento\Framework\Exception\LocalizedException $e) {
143144
unset($tag);
144145
$this->_skippedTags[] = $data['title'];
146+
$this->_logger->addDebug('Blog Tag Import [' . $data['title'] . ']: '. $e->getMessage());
145147
}
146148
}
147149

@@ -257,6 +259,7 @@ public function execute()
257259
$this->_importedPostsCount++;
258260
} catch (\Magento\Framework\Exception\LocalizedException $e) {
259261
$this->_skippedPosts[] = $data['title'];
262+
$this->_logger->addDebug('Blog Post Import [' . $data['title'] . ']: '. $e->getMessage());
260263
}
261264

262265
unset($post);

0 commit comments

Comments
 (0)