print>>sys.stderr,"gracedb upload of %s failed on attempt %d/%d: %d: %s"%(filename,attempt,self.retries,resp.status,httplib.responses.get(resp.status,"Unknown"))
print>>sys.stderr,"gracedb upload of %s failed on attempt %d/%d: %d: %s"%(filename,attempt,self.retries,resp.status,httplib.responses.get(resp.status,"Unknown"))