summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-10-29 11:26:24 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-29 11:26:24 +0100
commit7d96f826598256106af5f8087d2077a521e88a46 (patch)
treec9e66abf8e87192d85429cd507960f08bd5cf72a /apps/files_external
parent911613f7114c3f2c95b364b8b3d21ced5ee96283 (diff)
parent1b582ba66b74c7b5ade4560e8af234d1005089d6 (diff)
downloadnextcloud-server-7d96f826598256106af5f8087d2077a521e88a46.tar.gz
nextcloud-server-7d96f826598256106af5f8087d2077a521e88a46.zip
Merge pull request #19000 from UoM-ResPlat-DevOps/swift-squelch-expected-404-errors
Don't log expected Swift 404 responses in files_external
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/swift.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_external/lib/swift.php b/apps/files_external/lib/swift.php
index beb47ce0bce..e946e7feb77 100644
--- a/apps/files_external/lib/swift.php
+++ b/apps/files_external/lib/swift.php
@@ -106,7 +106,10 @@ class Swift extends \OC\Files\Storage\Common {
$this->getContainer()->getPartialObject($path);
return true;
} catch (ClientErrorResponseException $e) {
- \OCP\Util::writeLog('files_external', $e->getMessage(), \OCP\Util::ERROR);
+ // Expected response is "404 Not Found", so only log if it isn't
+ if ($e->getResponse()->getStatusCode() !== 404) {
+ \OCP\Util::writeLog('files_external', $e->getMessage(), \OCP\Util::ERROR);
+ }
return false;
}
}