569 | | self.logInfo("%s %s on printer %s didn't exit successfully." % (btypetitle, branch, self.PrinterName), "error") |
570 | | exitcode = 1 |
| 571 | if (btype == "prehook") and (retcode == 255) : # -1 |
| 572 | self.logInfo("Job %s cancelled by prehook %s" % (self.JobId, branch)) |
| 573 | os.environ["TEASTATUS"] = "CANCELLED" # and don't touch exitcode |
| 574 | else : |
| 575 | self.logInfo("%s %s on printer %s didn't exit successfully." % (btypetitle, branch, self.PrinterName), "error") |
| 576 | exitcode = 1 |
603 | | self.logInfo("%s %s (PID %s) on printer %s didn't exit successfully." % (btypetitle, branch, childpid, self.PrinterName), "error") |
604 | | exitcode = 1 |
| 609 | if (btype == "prehook") and (retcode == 255) : # -1 |
| 610 | self.logInfo("Job %s cancelled by prehook %s" % (self.JobId, branch)) |
| 611 | os.environ["TEASTATUS"] = "CANCELLED" # and don't touch exitcode |
| 612 | else : |
| 613 | self.logInfo("%s %s (PID %s) on printer %s didn't exit successfully." % (btypetitle, branch, childpid, self.PrinterName), "error") |
| 614 | exitcode = 1 |