diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-03-02 12:00:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-02 12:00:44 +0100 |
commit | 2ff0c972c98a14f4dbd81d7923b119770600918f (patch) | |
tree | e6e93fb8bd7e9cc3657752534c94a7347c0b2109 /apps | |
parent | 18bafefb00add3a7e075e58c1edb420c27a61a24 (diff) | |
parent | 83717a7800e8854b3f3ba17608157598d1fe28ca (diff) | |
download | nextcloud-server-2ff0c972c98a14f4dbd81d7923b119770600918f.tar.gz nextcloud-server-2ff0c972c98a14f4dbd81d7923b119770600918f.zip |
Merge pull request #31124 from nextcloud/enh/diagnostics-logging
Diagnostics event logging to log
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/Server.php | 5 |
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 { |