Index: /trunk/ippToPsps/jython/fits.py
===================================================================
--- /trunk/ippToPsps/jython/fits.py	(revision 40125)
+++ /trunk/ippToPsps/jython/fits.py	(revision 40126)
@@ -39,4 +39,5 @@
                time.sleep(time_wait)
                time_wait= 120 #(first time, wait 30 seconds)
+               
 
        if success == 0:
@@ -44,4 +45,8 @@
            return           
 
+       if os.path.getsize(self.originalPath)==0:
+           success = 0
+           self.logger.errorPair("empty file, 0 bytes", self.originalPath)
+           return           
        # does this file even exist?
        #if not os.path.isfile(self.originalPath): 
@@ -58,8 +63,11 @@
        # open the local copy and parse the header
        #self.file = open(self.localCopyPath)
+       self.logger.infoPair("opening FITS file",self.originalPath)
        self.file = open(self.originalPath)
+       self.logger.infoPair("parsing", "header")
        self.header = self.parseHeader()
+
        #self.logger.debugPair("FITS local copy", self.localCopyPath)
-       self.logger.debugPair("FITS primary header", "%d cards found" % len(self.header))
+       self.logger.infoPair("FITS primary header", "%d cards found" % len(self.header))
 
        # move file pointer back to the start of the file
