Merge pull request #19000 from UoM-ResPlat-DevOps/swift-squelch-expected-404-errors
Don't log expected Swift 404 responses in files_external
This commit is contained in:
commit
7d96f82659
|
@ -106,7 +106,10 @@ class Swift extends \OC\Files\Storage\Common {
|
||||||
$this->getContainer()->getPartialObject($path);
|
$this->getContainer()->getPartialObject($path);
|
||||||
return true;
|
return true;
|
||||||
} catch (ClientErrorResponseException $e) {
|
} 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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue