This commit is contained in:
2025-03-21 20:24:43 +01:00
parent 224398df90
commit f34c9162d4
12427 changed files with 5329941 additions and 373384 deletions

View File

@@ -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."
);
}
}