Skip to content

Commit

Permalink
fix: Move not found errors to info level
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Jul 31, 2024
1 parent d710426 commit 5432853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/AOCSController.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected function handlePermissionError(PermissionError $e): DataResponse {
* @return DataResponse<Http::STATUS_NOT_FOUND, array{message: string}, array{}>
*/
protected function handleNotFoundError(NotFoundError $e): DataResponse {
$this->logger->warning('A not found error occurred: ['. $e->getCode() . ']' . $e->getMessage());
$this->logger->info('A not found error occurred: ['. $e->getCode() . ']' . $e->getMessage());
return new DataResponse(['message' => $this->n->t('A not found error occurred. More details can be found in the logs. Please reach out to your administration.')], Http::STATUS_NOT_FOUND);
}

Expand Down

0 comments on commit 5432853

Please sign in to comment.