sbsv2/raptor/python/raptor.py
branchwip
changeset 9 b211d87c390a
parent 5 593a8820b912
child 12 2cfea3290625
equal deleted inserted replaced
8:34d87ffcc373 9:b211d87c390a
  1037 						   % (raptor_version.fullversion(), namespace, namespace, schema))
  1037 						   % (raptor_version.fullversion(), namespace, namespace, schema))
  1038 			self.logOpen = True
  1038 			self.logOpen = True
  1039 		except Exception,e:
  1039 		except Exception,e:
  1040 			self.out = sys.stdout # make sure that we can actually get errors out.
  1040 			self.out = sys.stdout # make sure that we can actually get errors out.
  1041 			self.logOpen = False
  1041 			self.logOpen = False
  1042 			self.FatalError("<error>Unable to open the output logs: %s" % str(e))
  1042 			self.FatalError("Unable to open the output logs: %s" % str(e))
  1043 
  1043 
  1044 	def CloseLog(self):
  1044 	def CloseLog(self):
  1045 		if self.logOpen:
  1045 		if self.logOpen:
  1046 			self.out.summary()
  1046 			self.out.summary()
  1047 			self.out.write("</buildlog>\n")
  1047 			self.out.write("</buildlog>\n")