Skip to content

Commit b3358b8

Browse files
authored
Merge pull request #4169 from LibreSign/chore/implement-logs
chore: implement logs
2 parents f3eb95f + 3ea292c commit b3358b8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/psalm.yml

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

lib/Service/Install/ConfigureCheckService.php

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use OCA\Libresign\Handler\JSignPdfHandler;
1515
use OCA\Libresign\Helper\ConfigureCheckHelper;
1616
use OCP\AppFramework\Services\IAppConfig;
17+
use Psr\Log\LoggerInterface;
1718

1819
class ConfigureCheckService {
1920
private string $architecture;
@@ -25,6 +26,7 @@ public function __construct(
2526
private JSignPdfHandler $jSignPdfHandler,
2627
private CertificateEngine $certificateEngine,
2728
private SignSetupService $signSetupService,
29+
private LoggerInterface $logger,
2830
) {
2931
$this->architecture = php_uname('m');
3032
}
@@ -243,6 +245,7 @@ private function getErrorAndTipToResultOfVerify(array $result): array {
243245
];
244246
}
245247
}
248+
$this->logger->error('Invalid hash of binaries files', ['result' => $result]);
246249
return [
247250
'Invalid hash of binaries files.',
248251
'Run occ libresign:install --all',

0 commit comments

Comments
 (0)