Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Richter committed Sep 16, 2024
1 parent c9afd04 commit 9f39181
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Classes/Command/IndexCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ protected function fullSync(): void
$this->client->indices()->create(['index' => $index]);
} else {
$this->io->error("Exception: " . $e->getMessage());
$this->log->error('Bibliography sync unsuccessful. Error creating elasticsearch index.');
$this->logger->error('Bibliography sync unsuccessful. Error creating elasticsearch index.');
die;
}
}
Expand All @@ -164,7 +164,7 @@ protected function fullSync(): void
$this->io->newline(1);
if ($apiCounter == 0) {
$this->io->note('Giving up after ' . self::API_TRIALS . ' trials.');
$this->log->error('Bibliography sync unsuccessful. Zotero API sent {trials} 500 errors.', ['trials' => self::API_TRIALS]);
$this->logger->error('Bibliography sync unsuccessful. Zotero API sent {trials} 500 errors.', ['trials' => self::API_TRIALS]);
die;
} else {
$this->io->note('Trying again. ' . --$apiCounter . ' trials left.');
Expand All @@ -188,7 +188,7 @@ protected function versionedSync(int $version): void
$this->io->newline(1);
if ($apiCounter == 0) {
$this->io->note('Giving up after ' . self::API_TRIALS . ' trials.');
$this->log->warning('Bibliography sync unseccessful. Zotero API sent {trials} 500 errors.', ['trials' => self::API_TRIALS]);
$this->logger->warning('Bibliography sync unseccessful. Zotero API sent {trials} 500 errors.', ['trials' => self::API_TRIALS]);
die;
} else {
$this->io->note('Trying again. ' . --$apiCounter . ' trials left.');
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
"require": {
"typo3/cms-core": "^12",
"typo3/cms-fluid-styled-content": "^12",
"typo3/cms-scheduler": "^12",
"dikastes/zotero-api": "^1.2",
"elasticsearch/elasticsearch": "^7",
"illuminate/collections": "^9",
"illuminate/collections": "^11",
"slub/liszt-common": "@dev"
},
"require-dev": {
Expand Down

0 comments on commit 9f39181

Please sign in to comment.