Merge pull request #5185 from nextcloud/error-spam-in-log

Don't try to generate logs for chunking paths
This commit is contained in:
Morris Jobke 2017-06-07 17:12:47 -05:00 committed by GitHub
commit a753fbe818
1 changed files with 8 additions and 0 deletions

View File

@ -65,6 +65,10 @@ class Files extends Action {
* @param array $params
*/
public function create(array $params) {
if ($params['path'] === '/' || $params['path'] === '' || $params['path'] === null) {
return;
}
$this->log(
'File created: "%s"',
$params,
@ -96,6 +100,10 @@ class Files extends Action {
* @param array $params
*/
public function write(array $params) {
if ($params['path'] === '/' || $params['path'] === '' || $params['path'] === null) {
return;
}
$this->log(
'File written to: "%s"',
$params,