private function logMessage(\Ess\M2ePro\Model\Ebay\Account\PickupStore\State $stateItem, \Ess\M2ePro\Model\Connector\Connection\Response\Message $message) { $this->getLog()->addMessage($stateItem->getId(), $this->params['logs_action_id'], $this->getLogsAction($stateItem), $message->getText(), $this->getLogsMessageType($message), $this->getLogsPriority($message)); }
/** * @param \Ess\M2ePro\Model\Listing\Product $listingProduct * @param string $message * @param int $type * @param int $priority */ public function logListingProductMessage(\Ess\M2ePro\Model\Listing\Product $listingProduct, \Ess\M2ePro\Model\Connector\Connection\Response\Message $message, $priority = \Ess\M2ePro\Model\Log\AbstractLog::PRIORITY_MEDIUM) { $this->getListingLog()->addProductMessage($listingProduct->getListingId(), $listingProduct->getProductId(), $listingProduct->getId(), $this->initiator, $this->actionId, $this->action, $message->getText(), $this->initLogType($message), $priority); }