Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Got log file name wrong again, this should fix it for 99% of cases

The only time it won't work is when the archiver or cleanup fails to
run properly after some other stage failed. That should happen pretty
rarely, if ever, so I'm not too worried about it.
  • Loading branch information...
commit 455cf96fc215cfaa3ceb2ac58b20036a6e948447 1 parent 782b3b7
@todesschaf todesschaf authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 stoneridge_cronjob.py
View
6 stoneridge_cronjob.py
@@ -68,8 +68,7 @@ def run_process(self, stage, *args):
any arguments requested by the caller
"""
script = os.path.join(self.srroot, 'stoneridge_%s.py' % (stage,))
- self.childlog = os.path.join(self.logdir,
- '%02d_%s.log' % (self.procno, stage))
+ logfile = os.path.join(self.logdir, '%02d_%s.log' % (self.procno, stage))
self.procno += 1
command = [sys.executable,
@@ -79,7 +78,7 @@ def run_process(self, stage, *args):
'--root', self.srroot,
'--workdir', self.srwork,
'--xpcout', self.srxpcout,
- '--log', self.childlog]
+ '--log', logfile]
command.extend(args)
logging.debug('Running %s' % (stage,))
@@ -92,6 +91,7 @@ def run_process(self, stage, *args):
logging.debug('SUCCEEDED: %s' % (stage,))
except subprocess.CalledProcessError as e:
# The process failed to run correctly, we need to say so
+ self.childlog = logfile
logging.error('FAILED: %s (%s)' % (stage, e.returncode))
logging.error(e.output)
Please sign in to comment.
Something went wrong with that request. Please try again.