We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5786c6c + 167a8d7 commit d092802Copy full SHA for d092802
1 file changed
apps/dav/lib/Connector/Sabre/File.php
@@ -55,6 +55,7 @@
55
use OCP\Files\NotPermittedException;
56
use OCP\Files\Storage;
57
use OCP\Files\StorageNotAvailableException;
58
+use OCP\ILogger;
59
use OCP\Lock\ILockingProvider;
60
use OCP\Lock\LockedException;
61
use OCP\Share\IManager;
@@ -229,7 +230,13 @@ public function put($data) {
229
230
}
231
232
} catch (\Exception $e) {
- \OC::$server->getLogger()->logException($e);
233
+ $context = [];
234
+
235
+ if ($e instanceof LockedException) {
236
+ $context['level'] = ILogger::DEBUG;
237
+ }
238
239
+ \OC::$server->getLogger()->logException($e, $context);
240
if ($needsPartFile) {
241
$partStorage->unlink($internalPartPath);
242
0 commit comments