diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-10-03 22:13:55 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-10-20 13:38:38 +0200 |
commit | 1e69f5e7ac3414f307aac16842655a34a2f3c709 (patch) | |
tree | cd6ac10cd7feafe424bd1abd6f3cd0a4e145af0e /lib/private/route/router.php | |
parent | 6e08014781ea0099d7e4466dd48d80af63d8ab69 (diff) | |
download | nextcloud-server-1e69f5e7ac3414f307aac16842655a34a2f3c709.tar.gz nextcloud-server-1e69f5e7ac3414f307aac16842655a34a2f3c709.zip |
Log some basic events
Diffstat (limited to 'lib/private/route/router.php')
-rw-r--r-- | lib/private/route/router.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/route/router.php b/lib/private/route/router.php index aa3d05dcb85..fd6d9939184 100644 --- a/lib/private/route/router.php +++ b/lib/private/route/router.php @@ -202,6 +202,7 @@ class Router implements IRouter { * @return void */ public function match($url) { + \OC::$server->getEventLogger()->start('load_routes', 'Load routes'); if (substr($url, 0, 6) === '/apps/') { // empty string / 'apps' / $app / rest of the route list(, , $app,) = explode('/', $url, 4); @@ -216,6 +217,7 @@ class Router implements IRouter { } else { $this->loadRoutes(); } + \OC::$server->getEventLogger()->end('load_routes'); $matcher = new UrlMatcher($this->root, $this->context); try { @@ -236,6 +238,7 @@ class Router implements IRouter { } } + \OC::$server->getEventLogger()->start('run_route', 'Run route'); if (isset($parameters['action'])) { $action = $parameters['action']; if (!is_callable($action)) { @@ -249,6 +252,7 @@ class Router implements IRouter { } else { throw new \Exception('no action available'); } + \OC::$server->getEventLogger()->end('run_route'); } /** |