Skip to content

Commit 989b6b5

Browse files
committed
chore: implement logs
Signed-off-by: Vitor Mattos <[email protected]>
1 parent f3eb95f commit 989b6b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)