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
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-07-03 11:06:51 +0300
commit2f903c6cc50699d3b4100dc9d1c1c368db9c562c (patch)
tree08d1856c6655bdd7bc133e15c4e5758e587e2440 /lib
parent3608521504aa4377ed8393c4ba08b88107234fb7 (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);