Index: /branches/eam_branch_20080229/psphot/src/psphotFindDetections.c
===================================================================
--- /branches/eam_branch_20080229/psphot/src/psphotFindDetections.c	(revision 16768)
+++ /branches/eam_branch_20080229/psphot/src/psphotFindDetections.c	(revision 16769)
@@ -55,4 +55,6 @@
 	// merge in old peaks;
 	const int includePeaks = 0x0 | 0x2; // i.e. just from newFootprints
+	
+	psLogMsg ("psphot", PS_LOG_INFO, "merging %ld new footprints into %ld existing ones\n", footprints->n, detections->footprints->n);
 	psArray *mergedFootprints = pmMergeFootprintArrays(detections->footprints, footprints, includePeaks);
 	psFree(footprints);
@@ -64,5 +66,6 @@
 
     psphotCullPeaks(readout->image, readout->weight, recipe, detections->footprints);
-    detections->peaks = pmFootprintArrayToPeaks(footprints);
+    detections->peaks = pmFootprintArrayToPeaks(detections->footprints);
+    psLogMsg ("psphot", PS_LOG_INFO, "peaks: %ld, total footprints: %ld\n", detections->peaks->n, detections->footprints->n);
 
     return detections;
