Index: trunk/ippTasks/stack.pro
===================================================================
--- trunk/ippTasks/stack.pro	(revision 17415)
+++ trunk/ippTasks/stack.pro	(revision 17624)
@@ -128,7 +128,11 @@
     sprintf outroot "%s/tess_%s/%s/%s.%s.stk.%s" $WORKDIR $TESS_ID $SKYCELL_ID $TESS_ID $SKYCELL_ID $STACK_ID
 
-    ## generate output log based on filerule (convert the URI to a PATH)
+    ## generate output log based on filerule (convert the URI to a PATH) (use STACK_ID?)
 #    $logfile = `ipp_filename.pl --filerule LOG.EXP --camera $CAMERA --class_id $STACK_ID --basename $outroot`
-    $logfile = `ipp_datapath.pl $outroot.pantasks.log`
+    $logfile = `ipp_filename.pl --filerule LOG.EXP --camera $CAMERA --class_id NONE --basename $outroot`
+    if ("$logfile" == "") 
+      echo "WARNING: logfile not defined in stack.pro:136"
+      break
+    end
 
     stdout $logfile
