Skip to content

Commit

Permalink
Merge pull request #46636 from nextcloud/backport/46608/stable29
Browse files Browse the repository at this point in the history
[stable29] fix(TextProcessing): use error instead of info for exception logging
  • Loading branch information
kyteinsky authored Jul 24, 2024
2 parents 080106a + 9b0ed06 commit c40244f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/TextProcessing/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function runTask(OCPTask $task): string {
$this->taskMapper->update(DbTask::fromPublicTask($task));
return $output;
} catch (\Throwable $e) {
$this->logger->info('LanguageModel call using provider ' . $provider->getName() . ' failed', ['exception' => $e]);
$this->logger->error('LanguageModel call using provider ' . $provider->getName() . ' failed', ['exception' => $e]);
$task->setStatus(OCPTask::STATUS_FAILED);
$this->taskMapper->update(DbTask::fromPublicTask($task));
throw new TaskFailureException('LanguageModel call using provider ' . $provider->getName() . ' failed: ' . $e->getMessage(), 0, $e);
Expand Down

0 comments on commit c40244f

Please sign in to comment.