Made message signing in Cryptography use SHA512 as the message content for... #1

Closed
netkas wants to merge 421 commits from master into dev
Showing only changes of commit 0a773101d2 - Show all commits

View file

@ -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);
}
} }
/** /**