Index: /branches/eam_branches/ipp-20150112/Ohana/src/relastro/Makefile
===================================================================
--- /branches/eam_branches/ipp-20150112/Ohana/src/relastro/Makefile	(revision 37957)
+++ /branches/eam_branches/ipp-20150112/Ohana/src/relastro/Makefile	(revision 37958)
@@ -138,4 +138,5 @@
 $(SRC)/relastroVisual.$(ARCH).o \
 $(SRC)/syncfile.$(ARCH).o \
+$(SRC)/client_logger.$(ARCH).o \
 $(SRC)/BrightCatalog.$(ARCH).o 
 
Index: /branches/eam_branches/ipp-20150112/Ohana/src/relastro/src/BrightCatalog.c
===================================================================
--- /branches/eam_branches/ipp-20150112/Ohana/src/relastro/src/BrightCatalog.c	(revision 37957)
+++ /branches/eam_branches/ipp-20150112/Ohana/src/relastro/src/BrightCatalog.c	(revision 37958)
@@ -344,6 +344,8 @@
   /*** MeasureTiny ***/
   {
+    ohana_memcheck_func (1);
     gfits_create_table_header (&theader, "BINTABLE", "MEASURE_TINY");
 
+    ohana_memcheck_func (1);
     gfits_define_bintable_column (&theader, "D", "RA",       "ra",                         "degrees", 1.0, 0.0);
     gfits_define_bintable_column (&theader, "D", "DEC",      "dec",                        "degrees", 1.0, 0.0);
@@ -368,5 +370,7 @@
 
     // generate the output array that carries the data
+    ohana_memcheck_func (1);
     gfits_create_table (&theader, &ftable);
+    ohana_memcheck_func (1);
 
     // create intermediate storage arrays
@@ -391,4 +395,5 @@
     int    *catID     ; ALLOCATE (catID    ,  int  ,  catalog->Nmeasure);
     short  *photcode  ; ALLOCATE (photcode ,  short,  catalog->Nmeasure);
+    ohana_memcheck_func (1);
 
     // assign the storage arrays
@@ -416,8 +421,11 @@
       photcode[i] = measure[i].photcode ;
     }
+    ohana_memcheck_func (1);
 
     // add the columns to the output array
     gfits_set_bintable_column (&theader, &ftable, "RA",   	R,         catalog->Nmeasure);
+    ohana_memcheck_func (1);
     gfits_set_bintable_column (&theader, &ftable, "DEC",  	D,         catalog->Nmeasure);
+    ohana_memcheck_func (1);
     gfits_set_bintable_column (&theader, &ftable, "ROFF_GAL",   RoffGAL,   catalog->Nmeasure);
     gfits_set_bintable_column (&theader, &ftable, "DOFF_GAL",   DoffGAL,   catalog->Nmeasure);
Index: /branches/eam_branches/ipp-20150112/Ohana/src/relastro/src/client_logger.c
===================================================================
--- /branches/eam_branches/ipp-20150112/Ohana/src/relastro/src/client_logger.c	(revision 37957)
+++ /branches/eam_branches/ipp-20150112/Ohana/src/relastro/src/client_logger.c	(revision 37958)
@@ -27,4 +27,6 @@
 int client_logger_message (char *format,...) {
 
+  if (!logfile) return FALSE;
+
   va_list argp;
 
Index: /branches/eam_branches/ipp-20150112/Ohana/src/relastro/src/load_catalogs.c
===================================================================
--- /branches/eam_branches/ipp-20150112/Ohana/src/relastro/src/load_catalogs.c	(revision 37957)
+++ /branches/eam_branches/ipp-20150112/Ohana/src/relastro/src/load_catalogs.c	(revision 37958)
@@ -17,4 +17,5 @@
 
   if (VERBOSE) fprintf (stderr, "loading catalog data\n");
+  client_logger_message ("loading catalog data\n");
 
   ALLOCATE (catalog, Catalog, skylist[0].Nregions);
@@ -255,5 +256,8 @@
 
     BrightCatalog *bcatalog = BrightCatalogLoad (table->hosts[i].results);
-    assert (bcatalog);
+    if (!bcatalog) {
+      client_logger_message ("problem loading table from %s\n", table->hosts[i].hostname);
+      exit (2);
+    }
     
     BrightCatalogSplit (catalogs, bcatalog);
@@ -277,4 +281,5 @@
 
   fprintf (stderr, "loaded %d catalogs, using a total of %d stars (%d measures)\n", catalogs->Ncatalog, Naverage, Nmeasure);
+  client_logger_message ("loaded %d catalogs, using a total of %d stars (%d measures)\n", catalogs->Ncatalog, Naverage, Nmeasure);
 
   return (catalog);
