Skip to content
Snippets Groups Projects
Commit 7d96f826 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #19000 from UoM-ResPlat-DevOps/swift-squelch-expected-404-errors

Don't log expected Swift 404 responses in files_external
parents 911613f7 1b582ba6
Branches
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment