Skip to content

Commit

Permalink
Merge pull request #46608 from nextcloud/error-log-textprocessing
Browse files Browse the repository at this point in the history
fix(TextProcessing): use error instead of info for exception logging
  • Loading branch information
marcelklehr authored Jul 19, 2024
2 parents 89787e6 + d473b51 commit 18844cb
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 @@ -123,7 +123,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 18844cb

Please sign in to comment.