Index: /trunk/psModules/src/detrend/pmDetrendDB.c
===================================================================
--- /trunk/psModules/src/detrend/pmDetrendDB.c	(revision 18102)
+++ /trunk/psModules/src/detrend/pmDetrendDB.c	(revision 18103)
@@ -177,4 +177,5 @@
     if (!status) {
         psError (PS_ERR_IO, false, "detselect is not responding");
+        psLogMsg ("psModule.detrend", PS_LOG_ERROR, "detselect command:\n %s\n", line);
         goto failure;
     }
@@ -182,4 +183,5 @@
     if (exit_status) {
         psError (PS_ERR_IO, false, "error running detselect");
+        psLogMsg ("psModule.detrend", PS_LOG_ERROR, "detselect command:\n %s\n", line);
         goto failure;
     }
