fix(TextProcessing): use error instead of info for exception logging

Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
pull/46608/head
Anupam Kumar 2024-07-18 17:53:52 +07:00
parent 31d051ae74
commit d473b516ad
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

@ -123,7 +123,7 @@ class Manager implements IManager {
$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);