update
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* Class Przelewy24ExtraCharge
|
||||
*
|
||||
* @author Przelewy24
|
||||
* @copyright Przelewy24
|
||||
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
|
||||
*
|
||||
*/
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Class Przelewy24Logger
|
||||
@@ -19,8 +19,8 @@ class Przelewy24Logger extends PrestaShopLoggerCore
|
||||
/**
|
||||
* Add truncated log.
|
||||
*
|
||||
* @param string $message Log message.
|
||||
* @param string $truncMessage Comment about shortening message.
|
||||
* @param string $message log message
|
||||
* @param string $truncMessage comment about shortening message
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
@@ -33,20 +33,4 @@ class Przelewy24Logger extends PrestaShopLoggerCore
|
||||
|
||||
return self::addLog($message);
|
||||
}
|
||||
|
||||
/**
|
||||
* Logs response from P24 api.
|
||||
*
|
||||
* @param stdClass $response Response from api.
|
||||
* @param string $functionName Name of requested method.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function addApiErrorLog($response, $functionName)
|
||||
{
|
||||
return self::addTruncatedLog(
|
||||
print_r($response, true),
|
||||
"The soap response $functionName is too large to log it completely."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user