diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-07-02 16:51:58 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-07-02 16:51:58 +0300 |
commit | 223a265b2e94a0c4c6cdbd9f71e9614803c7a3c7 (patch) | |
tree | 9d0da8c072b60094673218983127d88c32de11b1 /lib | |
parent | d2333a049f116eae2f0511645521b86a9329fc9e (diff) |
Log the exceptions as INFO
There is no need to log them as ERROR
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Service/ApiService.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Service/ApiService.php b/lib/Service/ApiService.php index 93f877317..097e6a39e 100644 --- a/lib/Service/ApiService.php +++ b/lib/Service/ApiService.php @@ -159,7 +159,7 @@ class ApiService { try { $file = $this->documentService->getFileForSession($session, $token); } catch (NotFoundException $e) { - $this->logger->logException($e); + $this->logger->logException($e, ['level' => ILogger::INFO]); return new DataResponse([ 'message' => 'File not found' ], 404); @@ -176,7 +176,7 @@ class ApiService { } catch (NotFoundException $e) { return new DataResponse([], 404); } catch (Exception $e) { - $this->logger->logException($e); + $this->logger->logException($e, ['level' => ILogger::INFO]); return new DataResponse([ 'message' => $e->getMessage() ], 500); |