Add logging for searches.
authorGunnar Wrobel <p@rdus.de>
Tue, 16 Mar 2010 10:17:51 +0000 (11:17 +0100)
committerGunnar Wrobel <wrobel@temple.(none)>
Tue, 16 Mar 2010 10:18:30 +0000 (11:18 +0100)
framework/Kolab_Server/lib/Horde/Kolab/Server/Decorator/Log.php

index 89a0549..5fe6ab8 100644 (file)
@@ -152,7 +152,14 @@ implements Horde_Kolab_Server_Interface
      */
     public function find($query, array $params = array())
     {
-        return $this->_server->find($query, $params);
+        $result = $this->_server->find($query, $params);
+        $this->_logger->debug(
+            sprintf(
+                "Query %s identified %s result(s).",
+                $query, $result->count()
+            )
+        );
+        return $result;
     }
 
     /**