Merge pull request #21838 from nextcloud/enh/dav/do_not_log_invalid_range
Do not log RequestedRangeNotSatisfiable exceptions in DAV
This commit is contained in:
commit
3e8087bff1
|
@ -40,6 +40,7 @@ use Sabre\DAV\Exception\NotAuthenticated;
|
||||||
use Sabre\DAV\Exception\NotFound;
|
use Sabre\DAV\Exception\NotFound;
|
||||||
use Sabre\DAV\Exception\NotImplemented;
|
use Sabre\DAV\Exception\NotImplemented;
|
||||||
use Sabre\DAV\Exception\PreconditionFailed;
|
use Sabre\DAV\Exception\PreconditionFailed;
|
||||||
|
use Sabre\DAV\Exception\RequestedRangeNotSatisfiable;
|
||||||
use Sabre\DAV\Exception\ServiceUnavailable;
|
use Sabre\DAV\Exception\ServiceUnavailable;
|
||||||
|
|
||||||
class ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin {
|
class ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin {
|
||||||
|
@ -74,6 +75,8 @@ class ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin {
|
||||||
MethodNotAllowed::class => true,
|
MethodNotAllowed::class => true,
|
||||||
// A locked file is perfectly valid and can happen in various cases
|
// A locked file is perfectly valid and can happen in various cases
|
||||||
FileLocked::class => true,
|
FileLocked::class => true,
|
||||||
|
// An invalid range is requested
|
||||||
|
RequestedRangeNotSatisfiable::class => true,
|
||||||
];
|
];
|
||||||
|
|
||||||
/** @var string */
|
/** @var string */
|
||||||
|
|
Loading…
Reference in New Issue