diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2020-07-03 15:16:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-03 15:16:52 +0300 |
commit | d3418ba0dccf8102c4a179a81177a73e2363d5dc (patch) | |
tree | 08d1856c6655bdd7bc133e15c4e5758e587e2440 | |
parent | 3608521504aa4377ed8393c4ba08b88107234fb7 (diff) | |
parent | 2f903c6cc50699d3b4100dc9d1c1c368db9c562c (diff) |
Merge pull request #914 from nextcloud/backport/912/stable19
[stable19] Log the exceptions as INFO
-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); |