Don't log timing of show
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 1 Sep 2014 13:28:45 +0000 (15:28 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 1 Sep 2014 13:28:45 +0000 (15:28 +0200)
We already log the time elapsed for each HTTP request so this is
kind of redundant these days.

src/session.c

index 5f8cb7d..e978425 100644 (file)
@@ -57,7 +57,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #include <yaz/oid_db.h>
 #include <yaz/snprintf.h>
 
-#define USE_TIMING 1
+#define USE_TIMING 0
 #if USE_TIMING
 #include <yaz/timing.h>
 #endif
@@ -1282,6 +1282,12 @@ int session_fetch_more(struct session *se)
             {
                 session_log(se, YLOG_LOG, "%s: no more to fetch",
                             client_get_id(cl));
+                session_log(se, YLOG_LOG, "%s: hits=" ODR_INT_PRINTF
+                            " records=%d filtered=%d",
+                            client_get_id(cl),
+                            client_get_hits(cl),
+                            client_get_num_records(cl),
+                            client_get_num_records_filtered(cl));
             }
         }
         else