ts_str += '+0000'
timestamp = datetime.datetime.strptime(ts_str, timeformat)
email = commit['author']['email']
- committers.append((timestamp, email))
+ c_name = commit['author']['name']
+ committers.append((timestamp, email, c_name))
if committers:
committers.sort()
if self.verbose > 1:
LOG.debug("Got committers: {}".format(pp(committers)))
- self.mail_to_addresses.append(committers[-1][1])
+ last = committers[-1]
+ LOG.info("Last commit by {n!r} <{m}> at {d}.".format(
+ n=last[2], m=last[1], d=last[0].isoformat(' ')))
+ self.mail_to_addresses.append(last[1])
else:
LOG.debug("No committers found to append a mail address.")
sys.exit(10)
if not os.access(pdir, os.R_OK):
- LOG.error((
+ LOG.debug((
"Directory {!r} is read protected, "
"cannot check existence of cert files.").format(pdir))
return