From f13c150a560f31ed3e03833b9ed416d8c7c592f4 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Tue, 22 Feb 2022 10:53:13 +0100 Subject: Add logging around dav exec MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/dav/lib/Server.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/dav/lib/Server.php') 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 { -- cgit v1.2.3