public function call($sessionId, $apiPath, $args = array()) { $response = parent::call($sessionId, $apiPath, $args); if ($this->boolLogActive) { $log = "SOAP Method (V1): {$apiPath}"; $log .= "\ncalled from {$_SERVER['REMOTE_ADDR']}"; $log .= "\nParameters: " . print_r(array_merge((array) $sessionId, $args), true); if ($this->boolLogVerbose) { $log .= "\nResponse: " . print_r($response, true); } Mage::log($log, null, $this->strLogfile, $this->forceLog); } return $response; }
/** * Logs V1 API fault * * @param type $faultName * @param type $resourceName * @param type $customMessage */ protected function _fault($faultName, $resourceName = null, $customMessage = null) { Mage::helper('inchoo_soaplogger/v1')->logMessage('Fault while processing API call: ' . $faultName); parent::_fault($faultName, $resourceName, $customMessage); }