Walter Dörwald  committed 6396806

Better time logging.

  • Participants
  • Parent commits 006202d

Comments (0)

Files changed (1)

File src/ll/

 			self._formatlogline = ul4c.compile(self.formatlogline.replace("\n", "").replace("\r", "") + u"\n") # Log line formatting template
 			self._createlog() # Create log file and link
-"{0.sysinfo.scriptname} (maxtime {0.maxtime} seconds; parent pid {})".format(
+"{} (max run time {}; parent pid {})".format(, maxtimedelta,
 			# Fork the process; the child will do the work; the parent will monitor the maximum runtime
 			pid = os.fork()
 				# set a signal that kills the child process after the maximum runtime
 				def alarm(signum, frame):
 					os.kill(pid, signal.SIGTERM) # Kill our child
-					self.log.sisyphus.error.kill(u"Terminated after {} seconds!".format(self.maxtime))
+					self.log.sisyphus.error.kill(u"Terminated after {}".format(maxtimedelta))
 					if self.noisykills:
 						raise MaximumRuntimeExceeded(self.maxtime)
 				os.wait() # Wait for the child process to terminate
 				return # Exit normally
 			# From now on we are in the child process
-"no previous job running; here we go (child pid {})!".format(os.getpid()))
+"forked worker child (child pid {})".format(os.getpid()))
 				with url.Context():