aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Server.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-02-22 10:53:13 +0100
committerJulius Härtl <jus@bitgrid.net>2022-02-28 11:24:41 +0100
commitf13c150a560f31ed3e03833b9ed416d8c7c592f4 (patch)
treea425760545be28ad3bea68249a46f13275c4f947 /apps/dav/lib/Server.php
parent2dd96fe8da7a9479d6f98b34667d5d9e8ee2c1e2 (diff)
downloadnextcloud-server-f13c150a560f31ed3e03833b9ed416d8c7c592f4.tar.gz
nextcloud-server-f13c150a560f31ed3e03833b9ed416d8c7c592f4.zip
Add logging around dav exec
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/dav/lib/Server.php')
-rw-r--r--apps/dav/lib/Server.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/dav/lib/Server.php b/apps/dav/lib/Server.php
index ef7aa73dfb5..759d39c0233 100644
--- a/apps/dav/lib/Server.php
+++ b/apps/dav/lib/Server.php
@@ -35,6 +35,7 @@
namespace OCA\DAV;
use OCA\DAV\Connector\Sabre\RequestIdHeaderPlugin;
+use OCP\Diagnostics\IEventLogger;
use Psr\Log\LoggerInterface;
use OCA\DAV\AppInfo\PluginManager;
use OCA\DAV\CalDAV\BirthdayService;
@@ -337,7 +338,11 @@ class Server {
}
public function exec() {
+ /** @var IEventLogger $eventLogger */
+ $eventLogger = \OC::$server->get(IEventLogger::class);
+ $eventLogger->start('dav_server_exec', '');
$this->server->exec();
+ $eventLogger->end('dav_server_exec');
}
private function requestIsForSubtree(array $subTrees): bool {