Merge pull request #4169 from LibreSign/chore/implement-logs

chore: implement logs
This commit is contained in:
Vitor Mattos 2024-12-19 15:20:55 -03:00 committed by GitHub
commit b3358b8a99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -31,7 +31,8 @@ jobs:
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
with:
php-version: ${{ steps.versions.outputs.php-available }}
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, pdo_sqlite, posix, session, simplexml, sqlite, xmlreader, xmlwriter, zip, zlib
ini-values: disable_functions=""
coverage: none
ini-file: development
env:

View file

@ -14,6 +14,7 @@ use OCA\Libresign\Handler\CertificateEngine\Handler as CertificateEngine;
use OCA\Libresign\Handler\JSignPdfHandler;
use OCA\Libresign\Helper\ConfigureCheckHelper;
use OCP\AppFramework\Services\IAppConfig;
use Psr\Log\LoggerInterface;
class ConfigureCheckService {
private string $architecture;
@ -25,6 +26,7 @@ class ConfigureCheckService {
private JSignPdfHandler $jSignPdfHandler,
private CertificateEngine $certificateEngine,
private SignSetupService $signSetupService,
private LoggerInterface $logger,
) {
$this->architecture = php_uname('m');
}
@ -243,6 +245,7 @@ class ConfigureCheckService {
];
}
}
$this->logger->error('Invalid hash of binaries files', ['result' => $result]);
return [
'Invalid hash of binaries files.',
'Run occ libresign:install --all',