Add detail logging of record create/destroy
authorDennis Schafroth <dennis@indexdata.com>
Mon, 10 May 2010 08:15:34 +0000 (10:15 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Mon, 10 May 2010 08:15:34 +0000 (10:15 +0200)
src/zoom-c.c

index 806cac4..cc47d5a 100644 (file)
@@ -1806,6 +1806,7 @@ ZOOM_API(ZOOM_record)
     buf = odr_getbuf(odr_enc, &size, 0);
     
     nrec = (ZOOM_record) xmalloc(sizeof(*nrec));
+    yaz_log(log_details, "ZOOM_record create");
     nrec->odr = odr_createmem(ODR_DECODE);
     nrec->wrbuf = 0;
 #if YAZ_HAVE_XML2
@@ -1860,6 +1861,7 @@ ZOOM_API(void)
     ZOOM_record_destroy(ZOOM_record rec)
 {
     ZOOM_record_release(rec);
+    yaz_log(log_details, "ZOOM_record destroy");
     xfree(rec);
 }