Skip to content

Commit

Permalink
error log
Browse files Browse the repository at this point in the history
  • Loading branch information
maximemulder committed Nov 7, 2024
1 parent 0c52124 commit 0488bb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ class Processes extends Endpoint implements \LORIS\Middleware\ETagCalculator
$mriupload->getUploadLocation()
);
} catch (\LorisException $e) {
error_log($e->getMessage());
$this->logger->log(\Psr\Log\LogLevel::ERROR, $e->getMessage());
return new \LORIS\Http\Response\JSON\InternalServerError(
'MRI upload process can not be launched (see error_log.)'
'MRI upload process can not be launched (see error log.)'
);
}

Expand Down
2 changes: 1 addition & 1 deletion modules/api/php/endpoints/candidate/visit/dicoms.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ class Dicoms extends Endpoint implements \LORIS\Middleware\ETagCalculator
$is_phantom,
);
} catch (\Throwable $e) {
error_log($e->getMessage());
$this->logger->log(\Psr\Log\LogLevel::ERROR, $e->getMessage());
return new \LORIS\Http\Response\JSON\InternalServerError(
'Database insertion failed, please contact your LORIS '
. 'administrator.'
Expand Down

0 comments on commit 0488bb0

Please sign in to comment.