Made message signing in Cryptography use SHA512 as the message content for... #1
1 changed files with 5 additions and 5 deletions
|
@ -676,6 +676,11 @@
|
||||||
*/
|
*/
|
||||||
private static function returnError(int $responseCode, StandardError $standardError, ?string $message=null, ?Throwable $e=null): void
|
private static function returnError(int $responseCode, StandardError $standardError, ?string $message=null, ?Throwable $e=null): void
|
||||||
{
|
{
|
||||||
|
if($e !== null)
|
||||||
|
{
|
||||||
|
Logger::getLogger()->error($message, $e);
|
||||||
|
}
|
||||||
|
|
||||||
if($message === null)
|
if($message === null)
|
||||||
{
|
{
|
||||||
$message = $standardError->getMessage();
|
$message = $standardError->getMessage();
|
||||||
|
@ -690,11 +695,6 @@
|
||||||
{
|
{
|
||||||
print(PHP_EOL . PHP_EOL . Utilities::throwableToString($e));
|
print(PHP_EOL . PHP_EOL . Utilities::throwableToString($e));
|
||||||
}
|
}
|
||||||
|
|
||||||
if($e !== null)
|
|
||||||
{
|
|
||||||
Logger::getLogger()->error($message, $e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue