mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-18 05:20:45 +01:00
Merge pull request #4169 from LibreSign/chore/implement-logs
chore: implement logs
This commit is contained in:
commit
b3358b8a99
2 changed files with 5 additions and 1 deletions
3
.github/workflows/psalm.yml
vendored
3
.github/workflows/psalm.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue