Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-07-02 16:51:58 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2020-07-02 16:51:58 +0300
commit223a265b2e94a0c4c6cdbd9f71e9614803c7a3c7 (patch)
tree9d0da8c072b60094673218983127d88c32de11b1 /lib
parentd2333a049f116eae2f0511645521b86a9329fc9e (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.php4
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);